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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esp + 0xb0]
push eax
push esi
call fcn.00538200
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0xa8]
push ecx
push edx
call fcn.00538200
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0xc4]
push ecx
call fcn.00538410
add esp, 0x18
cmp eax, 1
jne 0x551347
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp esi, eax
mov dword [0x69d2dc], eax
mov dword [0x69d2e0], eax
je 0x551d54
jmp 0x551360
mov eax, dword [ebp + 8]
lea ebx, [eax + 0x10]
mov eax, dword [eax]
sub eax, 0
je 0x551d43
dec eax
je 0x55176b
dec eax
je 0x55138a
push 0
call fcn.0044b1f0
add esp, 4
jmp 0x551d43
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [esp + 0xc], eax
je 0x551d43
lea esp, [esp]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebx]
cmp edx, dword [ecx + 0x10]
jne 0x5513bb
mov eax, dword [ebx + 4]
cmp eax, dword [ecx + 0x14]
mov dword [esp + 0x40], 0
je 0x5513c3
mov dword [esp + 0x40], 1
mov eax, dword [ebp + 8]
movsx edx, word [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
sub eax, 0
mov dword [esp + 0x18], edx
je 0x551753
dec eax
je 0x551524
dec eax
je 0x5513f9
push 0
call fcn.0044b1f0
add esp, 4
jmp 0x551753
mov eax, dword [esp + 0x18]
test eax, eax
je 0x551753
mov esi, 0x14
lea ebx, [ebx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
movsx edi, word [eax + 0x1c]
dec ecx
test edi, edi
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x10], ecx
je 0x551509
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [esp + 0x8c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x90], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x94], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x98], ecx
mov edx, dword [edx + 0x10]
mov dword [esp + 0x9c], edx
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x7c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x80], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x84], edx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x40]
dec edi
test eax, eax
je 0x5514cf
mov eax, dword [esp + 0xc]
push ebx
lea esi, [esp + 0x90]
add eax, 0x10
call fcn.00551200
mov eax, dword [esp + 0x10]
add eax, 0x10
push eax
lea esi, [esp + 0x80]
mov eax, ebx
call fcn.00551200
add esp, 8
mov esi, 0x14
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x8c]
push edx
call fcn.00550840
add esp, 0x18
test eax, eax
jne 0x551d78
mov ecx, dword [esp + 0x10]
add ecx, esi
test edi, edi
mov dword [esp + 0x10], ecx
jne 0x551430
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, esi
test eax, eax
mov dword [esp + 0x14], ecx
jne 0x551410
jmp 0x551753
mov eax, dword [esp + 0x18]
test eax, eax
je 0x551753
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
dec ecx
mov dword [esp + 0x18], ecx
movsx ecx, word [eax + 0x1c]
test ecx, ecx
mov eax, dword [eax + 0x20]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x10], eax
je 0x55173c
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x40]
test eax, eax
mov ecx, 7
lea edi, [esp + 0x48]
mov dword [esp + 0x68], edx
rep movsd dword es:[edi], dword [esi]
je 0x551618
mov edi, dword [ebx]
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x10]
add eax, edi
cdq
sub eax, edx
add esi, 0x10
mov ecx, eax
mov eax, dword [esi + 4]
sar ecx, 1
sub ecx, edi
mov edi, dword [ebx + 4]
sub word [esp + 0x64], cx
sub word [esp + 0x66], cx
add eax, edi
cdq
sub eax, edx
sar eax, 1
sub eax, edi
sub word [esp + 0x68], ax
sub word [esp + 0x6a], ax
mov edi, dword [esi]
mov eax, dword [ebx]
mov esi, dword [esi + 4]
add eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebx + 4]
add eax, esi
cdq
sub eax, edx
sar ecx, 1
sub ecx, edi
mov edi, dword [esp + 0x50]
sub word [esp + 0x4c], cx
sub word [esp + 0x4e], cx
sub word [esp + 0x58], cx
sub word [esp + 0x5a], cx
sar eax, 1
sub eax, esi
mov esi, dword [esp + 0x5c]
sub word [esp + 0x48], ax
mov edx, ecx
shl edx, 0x10
sub edi, edx
sub esi, edx
sub word [esp + 0x4a], ax
mov dword [esp + 0x50], edi
mov dword [esp + 0x5c], esi
push 0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.00553140
add esp, 0x14
sub eax, 0
je 0x551d78
dec eax
je 0x551725
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x8c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x90], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x94], edx
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x98], eax
mov ecx, dword [ecx + 0x10]
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x9c], ecx
mov ecx, 7
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
je 0x551700
mov edi, dword [esp + 0xc]
add edi, 0x10
push ebx
lea esi, [esp + 0x90]
mov eax, edi
call fcn.00551200
mov esi, dword [edi]
mov eax, dword [ebx]
mov edi, dword [edi + 4]
add eax, esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebx + 4]
add eax, edi
cdq
sub eax, edx
sar ecx, 1
sub ecx, esi
mov esi, dword [esp + 0x60]
sub word [esp + 0x50], cx
sub word [esp + 0x52], cx
sub word [esp + 0x5c], cx
sub word [esp + 0x5e], cx
sar eax, 1
sub eax, edi
mov edi, dword [esp + 0x54]
sub word [esp + 0x4c], ax
mov edx, ecx
shl edx, 0x10
sub edi, edx
sub esi, edx
add esp, 4
sub word [esp + 0x4a], ax
mov dword [esp + 0x50], edi
mov dword [esp + 0x5c], esi
push 0
push 0
push 0
push 0
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0xa0]
push eax
call fcn.00550c00
add esp, 0x18
test eax, eax
jne 0x551d78
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
add ecx, 0x1c
test eax, eax
mov dword [esp + 0x10], ecx
jne 0x551554
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x14
test eax, eax
mov dword [esp + 0x14], ecx
jne 0x551530
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0xc]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x5513a0
jmp 0x551d43
mov eax, dword [ebp + 0xc]
test eax, eax
mov dword [esp + 0xc], eax
je 0x551d43
jmp 0x551780
mov eax, dword [esp + 0xc]
mov edx, dword [ebx]
cmp edx, dword [eax + 0x10]
mov ecx, dword [ebp + 8]
jne 0x55179a
mov edx, dword [ebx + 4]
cmp edx, dword [eax + 0x14]
mov dword [esp + 0x40], 0
je 0x5517a2
mov dword [esp + 0x40], 1
movsx edx, word [ecx + 0x1c]
mov eax, dword [eax]
sub eax, 0
mov ecx, dword [ecx + 0x20]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
je 0x551d30
dec eax
je 0x551ad9
dec eax
je 0x5517d5
push 0
call fcn.0044b1f0
add esp, 4
jmp 0x551d30
mov eax, dword [esp + 0x18]
test eax, eax
je 0x551d30
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, 7
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 4]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x55189e
mov esi, dword [ebx]
mov eax, dword [edi + 0x10]
add eax, esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [edi + 0x14]
sar ecx, 1
sub ecx, esi
mov esi, dword [ebx + 4]
add eax, esi
sub word [esp + 0x28], cx
sub word [esp + 0x2a], cx
sub word [esp + 0x34], cx
sub word [esp + 0x36], cx
cdq
sub eax, edx
sar eax, 1
sub eax, esi
sub word [esp + 0x24], ax
sub word [esp + 0x26], ax
mov esi, dword [esp + 0x2c]
mov edx, ecx
shl edx, 0x10
sub esi, edx
mov dword [esp + 0x2c], esi
sub dword [esp + 0x38], edx
mov esi, dword [edi + 0x10]
mov eax, dword [ebx]
add eax, esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebx + 4]
sar ecx, 1
sub ecx, esi
mov esi, dword [edi + 0x14]
sub word [esp + 0x1c], cx
sub word [esp + 0x1e], cx
add eax, esi
cdq
sub eax, edx
sar eax, 1
sub eax, esi
sub word [esp + 0x20], ax
sub word [esp + 0x22], ax
push 0
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00553140
add esp, 0x14
sub eax, 0
je 0x551d78
dec eax
je 0x551abd
movsx eax, word [edi + 0x1c]
test eax, eax
mov edx, dword [edi + 0x20]
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], edx
je 0x551abd
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x44], ecx
mov ecx, 7
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x20], edx
je 0x5519a1
mov edi, dword [ebx]
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x10]
add eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 0x14]
add esi, 0x10
sar ecx, 1
sub ecx, edi
mov edi, dword [ebx + 4]
sub word [esp + 0x28], cx
sub word [esp + 0x2a], cx
sub word [esp + 0x34], cx
sub word [esp + 0x36], cx
add eax, edi
cdq
sub eax, edx
sar eax, 1
sub eax, edi
sub word [esp + 0x24], ax
sub word [esp + 0x26], ax
mov edi, dword [esp + 0x2c]
mov edx, ecx
shl edx, 0x10
sub edi, edx
mov dword [esp + 0x2c], edi
sub dword [esp + 0x38], edx
mov edi, dword [esi]
mov eax, dword [ebx]
mov esi, dword [esi + 4]
add eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebx + 4]
add eax, esi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, edi
sub word [esp + 0x1c], cx
sub word [esp + 0x1e], cx
sub eax, esi
sub word [esp + 0x20], ax
sub word [esp + 0x22], ax
push 0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00553140
add esp, 0x14
sub eax, 0
je 0x551d78
dec eax
je 0x551aa6
mov esi, dword [esp + 0x14]
mov ecx, 7
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [esp + 0x78], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x7c], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x80], edx
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x40]
test eax, eax
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x88], ecx
je 0x551a81
mov edi, dword [ebx]
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x10]
add eax, edi
add esi, 0x10
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esi + 4]
sar ecx, 1
sub ecx, edi
mov edi, dword [ebx + 4]
sub word [esp + 0x28], cx
sub word [esp + 0x2a], cx
sub word [esp + 0x34], cx
sub word [esp + 0x36], cx
add eax, edi
cdq
sub eax, edx
sar eax, 1
sub eax, edi
mov edi, dword [esp + 0x2c]
sub word [esp + 0x24], ax
sub word [esp + 0x26], ax
mov edx, ecx
mov ecx, dword [esp + 0x38]
shl edx, 0x10
sub edi, edx
sub ecx, edx
push esi
lea esi, [esp + 0x7c]
mov eax, ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], ecx
call fcn.00551200
add esp, 4
push 0
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.00550c00
add esp, 0x18
test eax, eax
jne 0x551d78
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
add ecx, 0x14
test eax, eax
mov dword [esp + 0x10], ecx
jne 0x5518e3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x1c
test eax, eax
mov dword [esp + 0x14], ecx
jne 0x5517e1
jmp 0x551d30
mov eax, dword [esp + 0x18]
test eax, eax
je 0x551d30
jmp 0x551af0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, 7
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 4]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x20], edx
je 0x551bad
mov esi, dword [ebx]
mov eax, dword [edi + 0x10]
add eax, esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [edi + 0x14]
sar ecx, 1
sub ecx, esi
mov esi, dword [ebx + 4]
add eax, esi
sub word [esp + 0x28], cx
sub word [esp + 0x2a], cx
sub word [esp + 0x34], cx
sub word [esp + 0x36], cx
cdq
sub eax, edx
sar eax, 1
sub eax, esi
sub word [esp + 0x24], ax
sub word [esp + 0x26], ax
mov esi, dword [esp + 0x2c]
mov edx, ecx
shl edx, 0x10
sub esi, edx
mov dword [esp + 0x2c], esi
sub dword [esp + 0x38], edx
mov esi, dword [edi + 0x10]
mov eax, dword [ebx]
add eax, esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebx + 4]
sar ecx, 1
sub ecx, esi
mov esi, dword [edi + 0x14]
sub word [esp + 0x1c], cx
sub word [esp + 0x1e], cx
add eax, esi
cdq
sub eax, edx
sar eax, 1
sub eax, esi
sub word [esp + 0x20], ax
sub word [esp + 0x22], ax
push 0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00553140
add esp, 0x14
sub eax, 0
je 0x551d78
dec eax
je 0x551d19
movsx eax, word [edi + 0x1c]
test eax, eax
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], ecx
je 0x551d19
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
dec ecx
test eax, eax
mov dword [esp + 0x44], ecx
mov ecx, 7
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
mov ecx, 7
lea edi, [esp + 0x48]
mov dword [esp + 0x74], 0
rep movsd dword es:[edi], dword [esi]
je 0x551cd9
mov edi, dword [ebx]
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x10]
add eax, edi
cdq
sub eax, edx
add esi, 0x10
mov ecx, eax
mov eax, dword [esi + 4]
sar ecx, 1
sub ecx, edi
mov edi, dword [ebx + 4]
add eax, edi
sub word [esp + 0x28], cx
sub word [esp + 0x2a], cx
sub word [esp + 0x34], cx
sub word [esp + 0x36], cx
cdq
sub eax, edx
sar eax, 1
sub eax, edi
sub word [esp + 0x24], ax
sub word [esp + 0x26], ax
mov edi, dword [esp + 0x2c]
mov edx, ecx
shl edx, 0x10
sub edi, edx
mov dword [esp + 0x2c], edi
sub dword [esp + 0x38], edx
mov edi, dword [esi]
mov eax, dword [ebx]
mov esi, dword [esi + 4]
add eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebx + 4]
add eax, esi
cdq
sub eax, edx
sar ecx, 1
sub ecx, edi
mov edi, dword [esp + 0x50]
sub word [esp + 0x4c], cx
sub word [esp + 0x4e], cx
sub word [esp + 0x58], cx
sub word [esp + 0x5a], cx
sar eax, 1
sub eax, esi
mov esi, dword [esp + 0x5c]
sub word [esp + 0x48], ax
mov edx, ecx
shl edx, 0x10
sub edi, edx
sub esi, edx
sub word [esp + 0x4a], ax
mov dword [esp + 0x50], edi
mov dword [esp + 0x5c], esi
lea edx, [esp + 0x74]
push edx
push 0x5511f0
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.005526d0
mov eax, dword [esp + 0x88]
add esp, 0x14
test eax, eax
jne 0x551d78
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
add ecx, 0x1c
test eax, eax
mov dword [esp + 0x10], ecx
jne 0x551bf2
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add ecx, 0x1c
test eax, eax
mov dword [esp + 0x14], ecx
jne 0x551af0
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 0xc]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x55177c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [ebp + 8], eax
jne 0x551360
xor esi, esi
mov ecx, dword [0x69d2dc]
test ecx, ecx
je 0x551d6f
mov eax, dword [0x6bf274]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 8]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 1
jmp 0x551d56