Function at 0x5583b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb4
push ebx
xor eax, eax
mov ebx, ecx
push ebp
push esi
push edi
mov edi, edx
mov dword [esp + 0x40], ebx
lea edx, [esp + 0x38]
mov dword [esp + 0x64], eax
mov ecx, edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
call fcn.00556df3
test eax, eax
jne 0x558e85
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
cmp edx, 2
jne 0x558458
cmp ecx, eax
jne 0x558458
jmp 0x55842b
mov eax, dword [esp + 0x28]
mov ecx, edi
or eax, dword [esp + 0x2c]
je 0x55843f
call fcn.00556f8a
test eax, eax
jne 0x558e85
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00556df3
test eax, eax
je 0x558412
jmp 0x558e85
lea edx, [esp + 0x38]
call fcn.00556df3
test eax, eax
jne 0x558e85
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
cmp edx, 3
jne 0x55850a
cmp ecx, eax
jne 0x55850a
lea ecx, [esp + 0x88]
call fcn.00556c35
push dword [esp + 0xdc]
mov eax, dword [ebx + 0x30]
mov edx, edi
push dword [esp + 0xdc]
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0xc0], eax
lea eax, [esp + 0x90]
push eax
push dword [ebx + 0x3c]
mov dword [esp + 0xcc], ecx
push dword [ebx + 0x38]
mov ecx, dword [esp + 0xdc]
push 8
push dword [esp + 0xe4]
call fcn.00558156
mov ecx, dword [esp + 0xa8]
mov esi, eax
mov eax, dword [esp + 0xec]
add esp, 0x1c
mov edx, dword [esp + 0xd8]
mov dword [eax], ecx
lea ecx, [esp + 0x88]
call fcn.00556c5e
test esi, esi
je 0x5584ef
mov eax, esi
jmp 0x558e85
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.00556df3
test eax, eax
jne 0x558e85
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0xd4]
cmp edx, 4
jne 0x558575
xor eax, eax
cmp ecx, eax
jne 0x558575
push ebp
lea eax, [esp + 0x58]
mov edx, edi
push eax
mov eax, dword [esp + 0xd8]
lea esi, [ebx + 0x40]
push esi
mov ecx, ebx
push dword [eax]
push dword [esp + 0xdc]
push 0x40000000
call fcn.00557fe8
add esp, 0x18
test eax, eax
jne 0x558e85
mov eax, dword [ebx + 0x38]
lea edx, [esp + 0x38]
add dword [esi], eax
mov ecx, edi
mov eax, dword [ebx + 0x3c]
adc dword [esi + 4], eax
call fcn.00556df3
test eax, eax
jne 0x558e85
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, edx
or eax, ecx
jne 0x558582
xor eax, eax
jmp 0x558e85
cmp edx, 5
jne 0x558e82
xor eax, eax
cmp ecx, eax
jne 0x558e82
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov ecx, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.00556f2c
test eax, eax
jne 0x558e85
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x48], eax
jmp 0x55893e
mov esi, dword [esp + 0x38]
mov eax, esi
or eax, dword [esp + 0x3c]
je 0x558956
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00556df3
test eax, eax
jne 0x558e85
mov eax, dword [edi + 4]
xor edx, edx
cmp dword [esp + 0x2c], edx
ja 0x558e82
mov ecx, dword [esp + 0x28]
jb 0x558604
cmp ecx, eax
ja 0x558e82
cmp dword [esp + 0x3c], edx
ja 0x558937
cmp esi, 0x100
jae 0x558937
sub esi, 0xe
je 0x5588bb
sub esi, 1
je 0x55889d
push 2
pop edx
sub esi, edx
je 0x55870a
sub esi, 1
je 0x558705
sub esi, edx
je 0x5586df
sub esi, 1
jne 0x558937
lea esi, [ebx + 0x5c]
mov edx, ebp
mov ecx, esi
call fcn.00556bfe
mov edx, dword [esp + 0x1c]
mov ecx, edi
push ebp
push esi
call fcn.0055707a
pop ecx
pop ecx
test eax, eax
jne 0x558e85
mov eax, dword [edi + 4]
test eax, eax
je 0x558e82
dec eax
mov dword [edi + 4], eax
mov eax, dword [edi]
mov cl, byte [eax]
inc eax
test cl, cl
mov dword [edi], eax
mov ecx, edi
je 0x5586ce
lea edx, [esp + 0x50]
call fcn.00556f2c
test eax, eax
jne 0x558e85
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x50]
cmp ecx, dword [eax]
jae 0x558e82
mov edx, dword [esp + 0xcc]
mov eax, dword [edx + ecx*8]
mov dword [esp + 0x74], eax
mov eax, dword [edx + ecx*8 + 4]
lea ecx, [esp + 0x74]
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0x1c]
push ebp
push esi
call fcn.00557140
pop ecx
jmp 0x5588ad
lea ecx, [ebx + 0x64]
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0x1c]
push ebp
push dword [eax]
push dword [esp + 0xd4]
push edi
call fcn.00558283
add esp, 0x10
jmp 0x5588ae
lea ecx, [ebx + 0x6c]
jmp 0x5586e2
test eax, eax
je 0x558e82
dec eax
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dl, byte [eax]
mov byte [esp + 0x11], dl
lea edx, [eax + 1]
cmp byte [esp + 0x11], 0
mov dword [esp + 0x34], edx
mov dword [edi], edx
jne 0x558733
lea eax, [ecx - 1]
jmp 0x55876b
lea edx, [esp + 0x4c]
mov ecx, edi
call fcn.00556f2c
test eax, eax
jne 0x558e85
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0x4c]
cmp eax, dword [ecx]
jae 0x558e82
mov edx, dword [esp + 0xcc]
mov ecx, dword [edx + eax*8]
mov eax, dword [edx + eax*8 + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
test al, 1
jne 0x558e82
mov eax, dword [esp + 0x1c]
mov esi, dword [ebp]
mov ecx, esi
lea eax, [eax*4 + 4]
push eax
push ebp
call dword [0x68a308]
call esi
mov dword [ebx + 0x7c], eax
pop ecx
pop ecx
test eax, eax
je 0x558aba
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x5587b0
xor eax, eax
mov dword [ebx + 0x80], eax
jmp 0x5587e7
mov esi, dword [ebp]
push ecx
push ebp
mov ecx, esi
call dword [0x68a308]
call esi
pop ecx
pop ecx
mov ecx, eax
mov dword [ebx + 0x80], ecx
test ecx, ecx
je 0x558aba
mov eax, dword [esp + 0x14]
push eax
push dword [esp + 0x38]
push ecx
call fcn.006262f0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov esi, dword [ebx + 0x7c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x80]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esi], eax
mov edx, eax
add esi, 4
cmp dword [esp + 0x24], eax
jne 0x558816
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x10
jmp 0x558883
push 2
pop eax
cmp ecx, eax
jb 0x558e82
mov ebp, dword [esp + 0x14]
cmp byte [ecx + ebp - 2], dl
jne 0x558e82
cmp byte [ecx + ebp - 1], dl
jne 0x558e82
cmp edx, ecx
je 0x558e82
add edx, dword [esp + 0x14]
xor ebp, ebp
cmp word [edx], bp
mov ebp, dword [esp + 0xd4]
je 0x558860
xor ebx, ebx
add edx, eax
cmp word [edx], bx
jne 0x558855
mov ebx, dword [esp + 0x40]
sub edx, dword [esp + 0x14]
add edx, eax
mov eax, edx
shr eax, 1
mov dword [esi], eax
add esi, 4
sub dword [esp + 0x24], 1
push 2
pop eax
jne 0x558839
xor esi, esi
cmp edx, ecx
push 0x10
pop eax
cmove eax, esi
test eax, eax
jne 0x558e85
cmp byte [esp + 0x11], al
jne 0x55893e
sub dword [edi + 4], ecx
jmp 0x55893c
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call fcn.00557006
pop ecx
test eax, eax
jne 0x558e85
jmp 0x55893e
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x44]
push eax
mov edx, esi
mov ecx, edi
call fcn.00557006
pop ecx
test eax, eax
jne 0x558e85
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov dword [esp + 0x34], eax
mov edx, ecx
mov dword [esp + 0x20], ecx
test esi, esi
je 0x558931
mov bl, cl
mov ebp, ecx
mov dword [esp + 0x48], edx
test edx, edx
jne 0x5588fb
mov bl, byte [eax]
push 8
pop edx
dec edx
movzx eax, bl
mov cl, dl
shr eax, cl
mov ecx, dword [esp + 0x34]
and eax, 1
add ebp, eax
cmp dword [esp + 0x48], 0
lea eax, [ecx + 1]
cmovne eax, ecx
mov dword [esp + 0x34], eax
sub esi, 1
jne 0x5588ee
mov ebx, dword [esp + 0x40]
xor ecx, ecx
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0xd4]
mov dword [esp + 0x48], ecx
jmp 0x55893e
sub eax, ecx
mov dword [edi + 4], eax
add dword [edi], ecx
lea edx, [esp + 0x38]
mov ecx, edi
call fcn.00556df3
test eax, eax
je 0x5585c4
jmp 0x558e85
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x54]
jne 0x558e82
jmp 0x558983
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
je 0x558997
mov ecx, edi
call fcn.00556f8a
test eax, eax
jne 0x558e85
lea edx, [esp + 0x28]
mov ecx, edi
call fcn.00556df3
test eax, eax
je 0x55896a
jmp 0x558e85
mov esi, dword [ebp]
xor eax, eax
mov dword [esp + 0x4c], eax
mov edi, eax
mov dword [esp + 0x14], eax
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
mov ecx, esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x11], al
mov byte [esp + 0x13], al
mov eax, dword [ebx + 4]
movlpd qword [esp + 0x28], xmm0
mov byte [esp + 0x12], 0x80
lea eax, [eax*4 + 4]
push eax
push ebp
call dword [0x68a308]
call esi
mov dword [ebx + 0x74], eax
pop ecx
pop ecx
test eax, eax
je 0x558aba
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x5589fb
mov dword [ebx + 0x78], eax
jmp 0x558a1a
mov esi, dword [ebp]
mov ecx, esi
shl eax, 2
push eax
push ebp
call dword [0x68a308]
call esi
mov dword [ebx + 0x78], eax
pop ecx
pop ecx
test eax, eax
je 0x558aba
mov eax, dword [ebx + 0x48]
mov esi, dword [ebp]
mov ecx, esi
lea eax, [eax*8 + 8]
push eax
push ebp
call dword [0x68a308]
call esi
mov dword [ebx + 0x4c], eax
pop ecx
pop ecx
test eax, eax
je 0x558aba
mov eax, dword [ebx + 0x48]
add eax, 7
shr eax, 3
test eax, eax
jne 0x558a50
xor edx, edx
mov dword [ebx + 0x50], edx
jmp 0x558a6a
mov esi, dword [ebp]
mov ecx, esi
push eax
push ebp
call dword [0x68a308]
call esi
mov dword [ebx + 0x50], eax
pop ecx
pop ecx
test eax, eax
je 0x558aba
xor edx, edx
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x558a7d
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x58], edx
jmp 0x558ac3
mov esi, dword [ebp]
add eax, 7
shr eax, 3
mov ecx, esi
push eax
push ebp
call dword [0x68a308]
call esi
mov dword [ebx + 0x54], eax
pop ecx
pop ecx
test eax, eax
je 0x558aba
mov eax, dword [esp + 0x18]
mov esi, dword [ebp]
mov ecx, esi
shl eax, 2
push eax
push ebp
call dword [0x68a308]
call esi
mov dword [ebx + 0x58], eax
pop ecx
pop ecx
test eax, eax
jne 0x558ac1
push 2
jmp 0x558e84
xor edx, edx
mov eax, dword [esp + 0x70]
test eax, eax
je 0x558af9
mov ecx, dword [esp + 0x6c]
dec eax
mov dword [esp + 0x70], eax
mov al, byte [ecx]
inc ecx
mov dword [esp + 0x6c], ecx
test al, al
je 0x558ae5
mov dword [esp + 0x24], ecx
jmp 0x558af9
mov eax, dword [esp + 0x58]
add eax, 7
mov dword [esp + 0x50], ecx
shr eax, 3
add eax, ecx
mov dword [esp + 0x24], eax
mov esi, edx
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp dword [esp + 0x1c], edi
jbe 0x558e2f
mov cl, byte [esp + 0x12]
mov dword [esp + 0x18], edx
mov dword [esp + 0x38], esi
test cl, cl
jne 0x558b4e
mov eax, dword [ebx + 0x50]
lea ecx, [esi - 1]
mov bl, byte [esp + 0x11]
shr ecx, 3
mov byte [esp + 0x12], 0x80
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x40]
mov eax, dword [ebx + 0x54]
mov bl, byte [esp + 0x13]
mov byte [ecx + eax], bl
xor eax, eax
mov ebx, dword [esp + 0x40]
mov byte [esp + 0x11], al
mov byte [esp + 0x13], al
mov eax, dword [ebx + 0x4c]
xor ecx, ecx
mov dword [eax + esi*8], ebp
mov dword [eax + esi*8 + 4], edx
mov eax, dword [ebx + 0x58]
mov dword [eax + esi*4], ecx
cmp dword [esp + 0x44], ecx
je 0x558be1
mov ecx, esi
mov edx, 0x80
and ecx, 7
mov eax, esi
sar edx, cl
mov ecx, dword [esp + 0x44]
shr eax, 3
test byte [eax + ecx], dl
je 0x558be1
cmp dword [esp + 0x48], 0
je 0x558bbe
mov ecx, dword [esp + 0x4c]
mov edx, 0x80
mov ebx, dword [esp + 0x48]
and ecx, 7
sar edx, cl
mov ecx, dword [esp + 0x4c]
mov eax, ecx
shr eax, 3
test byte [eax + ebx], dl
mov ebx, dword [esp + 0x40]
jne 0x558bb7
mov al, byte [esp + 0x11]
or al, byte [esp + 0x12]
mov byte [esp + 0x11], al
inc ecx
mov dword [esp + 0x4c], ecx
jmp 0x558bca
mov al, byte [esp + 0x11]
or al, byte [esp + 0x12]
mov byte [esp + 0x11], al
cmp dword [esp + 0x14], 0
jne 0x558c5d
mov eax, dword [ebx + 0x78]
or dword [eax + esi*4], 0xffffffff
jmp 0x558df3
cmp dword [esp + 0x14], 0
jne 0x558c5d
cmp edi, dword [ebx + 4]
jae 0x558e82
mov eax, dword [ebx + 0x74]
mov dword [eax + edi*4], esi
xor eax, eax
inc eax
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x20], eax
je 0x558c1e
lea edx, [esp + 0x20]
lea ecx, [esp + 0x5c]
call fcn.00556f2c
test eax, eax
jne 0x558e85
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x558c5d
mov eax, dword [ebx + 0x20]
mov edx, dword [esp + 0x18]
movzx ecx, byte [eax + edi]
mov eax, dword [ebx + 0x1c]
add ecx, dword [eax + edi*4]
mov eax, dword [ebx + 0x24]
add ebp, dword [eax + ecx*8]
adc edx, dword [eax + ecx*8 + 4]
mov dword [esp + 0x18], edx
cmp edx, dword [eax + ecx*8 + 4]
jb 0x558e82
ja 0x558c5a
cmp ebp, dword [eax + ecx*8]
jb 0x558e82
inc edi
jmp 0x558be8
cmp dword [esp + 0x44], 0
mov eax, dword [ebx + 0x78]
mov dword [eax + esi*4], edi
je 0x558c88
mov ecx, esi
mov edx, 0x80
and ecx, 7
mov eax, esi
sar edx, cl
mov ecx, dword [esp + 0x44]
shr eax, 3
test byte [eax + ecx], dl
jne 0x558df3
sub dword [esp + 0x14], 1
jne 0x558d62
mov eax, dword [ebx + 0x20]
movzx ecx, byte [eax + edi]
mov eax, dword [ebx + 0x1c]
add ecx, dword [eax + edi*4]
mov eax, dword [ebx + 0x24]
mov edx, dword [eax + ecx*8]
mov eax, dword [eax + ecx*8 + 4]
mov ecx, dword [ebx + 0x4c]
mov dword [esp + 0x7c], eax
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x74], edx
mov eax, dword [eax + edi*4]
mov ebx, dword [ecx + eax*8]
sub ebp, dword [ecx + eax*8]
mov dword [esp + 0x80], ebx
mov ebx, dword [ecx + eax*8 + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x7c]
sbb eax, ebx
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0x40]
cmp ecx, eax
jb 0x558e82
ja 0x558cf3
cmp edx, ebp
jb 0x558e82
mov ebp, dword [esp + 0x80]
add ebp, edx
mov edx, dword [esp + 0x84]
adc edx, ecx
mov dword [esp + 0x18], edx
cmp edx, ecx
jb 0x558e82
ja 0x558d1d
cmp ebp, dword [esp + 0x74]
jb 0x558e82
cmp dword [esp + 0x20], 1
jne 0x558d5f
cmp dword [ebx + 0xc], 0
je 0x558d5f
mov ecx, edi
mov edx, 0x80
and ecx, 7
mov eax, edi
sar edx, cl
mov ecx, dword [ebx + 0xc]
shr eax, 3
test byte [eax + ecx], dl
mov edx, dword [esp + 0x18]
je 0x558d5f
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x58]
mov eax, dword [eax + edi*4]
mov dword [ecx + esi*4], eax
mov al, byte [esp + 0x13]
or al, byte [esp + 0x12]
mov byte [esp + 0x13], al
inc edi
jmp 0x558d9d
lea edx, [esp + 0x28]
lea ecx, [esp + 0x64]
call fcn.00556df3
test eax, eax
jne 0x558e85
add ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
adc edx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x2c]
jb 0x558e82
ja 0x558d9d
cmp ebp, dword [esp + 0x28]
jb 0x558e82
mov cl, byte [esp + 0x12]
test byte [esp + 0x13], cl
jne 0x558dfb
mov eax, dword [esp + 0x24]
test eax, eax
je 0x558dfb
cmp dword [esp + 0x50], 0
je 0x558dd6
mov eax, dword [esp + 0x34]
mov edx, 0x80
mov ecx, eax
shr eax, 3
and ecx, 7
sar edx, cl
mov ecx, dword [esp + 0x50]
test byte [eax + ecx], dl
je 0x558def
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x58]
mov eax, dword [eax]
add dword [esp + 0x24], 4
mov dword [ecx + esi*4], eax
mov al, byte [esp + 0x13]
or al, byte [esp + 0x12]
mov byte [esp + 0x13], al
inc dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov cl, byte [esp + 0x12]
inc esi
shr cl, 1
mov byte [esp + 0x12], cl
cmp esi, dword [esp + 0x1c]
jb 0x558b15
mov eax, dword [ebx + 0x50]
mov ecx, dword [esp + 0x38]
mov bl, byte [esp + 0x11]
shr ecx, 3
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x40]
mov eax, dword [ebx + 0x54]
mov bl, byte [esp + 0x13]
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x40]
cmp dword [esp + 0x14], 0
mov eax, dword [ebx + 0x4c]
mov dword [eax + esi*8], ebp
mov dword [eax + esi*8 + 4], edx
jne 0x558e82
jmp 0x558e61
cmp dword [esp + 0x5c], 0
je 0x558e82
lea edx, [esp + 0x20]
lea ecx, [esp + 0x5c]
call fcn.00556f2c
test eax, eax
jne 0x558e85
cmp dword [esp + 0x20], eax
jne 0x558e82
inc edi
mov eax, dword [ebx + 0x74]
mov dword [eax + edi*4], esi
cmp edi, dword [ebx + 4]
jb 0x558e42
cmp dword [esp + 0x5c], 0
je 0x55857b
cmp dword [esp + 0x60], 0
je 0x55857b
push 0x10
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret