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

Disassembly:
sub esp, 0xe8
push esi
push edi
mov edi, ecx
lea edx, [esp + 0x54]
mov ecx, dword [esp + 0xf4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x48]
mov esi, eax
mov dword [esp + 0x20], 0x20
mov eax, dword [esi]
cdq
and edx, 0xff
add eax, edx
mov ecx, eax
mov eax, dword [esi + 4]
cdq
sar ecx, 8
mov esi, dword [edi + 0xf0]
mov word [esp + 0x24], cx
and edx, 0xff
movsx ecx, cx
add eax, edx
mov dword [esp + 0x18], ecx
sar eax, 8
mov word [esp + 0x26], ax
xor edx, edx
movsx ecx, ax
mov eax, dword [edi + 0xf4]
mov dword [esp + 0xc], edx
add eax, esi
mov dword [esp + 0x14], ecx
cmp eax, 0x20
jg 0x55f6e9
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x20]
xor eax, eax
test esi, esi
mov dword [esp + 0x10], eax
jle 0x55fafa
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x24], ebp
jmp 0x55f709
mov ecx, dword [esp + 0x1c]
cmp ebp, eax
jg 0x55f88c
sub ecx, eax
lea ebx, [esp + edx*4 + 0x98]
mov word [esp + 0x3e], cx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push 1
push eax
lea esi, [ecx + ebp]
mov ecx, edi
mov word [esp + 0x44], si
mov edx, dword [esp + 0x44]
mov dword [esp + 0x18], edx
call fcn.00557300
test al, al
je 0x55f7c0
movsx ecx, word [esp + 0x12]
movsx eax, word [esp + 0x10]
shl ecx, 8
add ecx, 0x80
xor edx, edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x88], ecx
shl eax, 8
mov dword [esp + 0x4c], edx
lea ecx, [esp + 0x84]
lea edx, [esp + 0x44]
add eax, 0x80
push ecx
push edx
mov ecx, 0x81a800
mov dword [esp + 0x4c], eax
mov dword [esp + 0x8c], eax
call fcn.00545340
mov ecx, eax
call fcn.004702c0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
push eax
mov ecx, edi
call fcn.00564de0
test al, al
je 0x55f7c0
mov ecx, dword [esp + 0x10]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x14]
inc ecx
add ebx, 4
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x14], 0x18
je 0x55fa8e
mov edx, dword [esp + 0x1c]
mov word [esp + 0x38], si
mov esi, dword [esp + 0x18]
push 1
lea eax, [esi + edx]
lea edx, [esp + 0x14]
mov word [esp + 0x3e], ax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
push edx
mov ecx, edi
call fcn.00557300
test al, al
je 0x55f86c
movsx eax, word [esp + 0x10]
movsx ecx, word [esp + 0x12]
shl eax, 8
shl ecx, 8
add eax, 0x80
add ecx, 0x80
mov dword [esp + 0x50], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x78], ecx
lea eax, [esp + 0x74]
lea ecx, [esp + 0x50]
push eax
xor edx, edx
push ecx
mov ecx, 0x81a800
mov dword [esp + 0x60], edx
call fcn.00545340
mov ecx, eax
call fcn.004702c0
lea edx, [esp + 0x50]
mov ecx, edi
push edx
mov dword [esp + 0x5c], eax
call fcn.00564de0
test al, al
je 0x55f86c
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
mov dword [ebx], eax
mov dword [esp + 0x14], ecx
add ebx, 4
mov eax, dword [esp + 0x14]
cmp eax, 0x18
je 0x55fa8e
inc ebp
cmp ebp, esi
jle 0x55f71f
mov ebp, dword [esp + 0x24]
mov edx, eax
mov eax, dword [esp + 0x18]
cmp edx, 0x18
je 0x55fa92
lea ebx, [ebp + 1]
lea ecx, [eax - 1]
cmp ebx, ecx
mov dword [esp + 0x40], ecx
jg 0x55fa71
mov ecx, dword [esp + 0x20]
lea ebp, [esp + edx*4 + 0x98]
sub ecx, eax
mov word [esp + 0x30], cx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 1
push ecx
lea esi, [ebx + edx]
mov ecx, edi
mov word [esp + 0x3a], si
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
call fcn.00557300
test al, al
je 0x55f955
movsx eax, word [esp + 0x10]
movsx ecx, word [esp + 0x12]
shl eax, 8
xor edx, edx
add eax, 0x80
shl ecx, 8
mov dword [esp + 0x70], edx
add ecx, 0x80
mov dword [esp + 0x68], eax
mov dword [esp + 0x7c], eax
lea edx, [esp + 0x7c]
lea eax, [esp + 0x68]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x80], ecx
push edx
push eax
mov ecx, 0x81a800
call fcn.00545340
mov ecx, eax
call fcn.004702c0
lea ecx, [esp + 0x68]
mov dword [esp + 0x70], eax
push ecx
mov ecx, edi
call fcn.00564de0
test al, al
je 0x55f955
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc ecx
mov dword [ebp], edx
mov dword [esp + 0x14], ecx
add ebp, 4
cmp dword [esp + 0x14], 0x18
je 0x55fa8e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add eax, ecx
mov word [esp + 0x36], si
mov word [esp + 0x34], ax
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x10]
push 1
push eax
mov ecx, edi
mov dword [esp + 0x18], edx
call fcn.00557300
test al, al
je 0x55fa51
movsx eax, word [esp + 0x10]
movsx ecx, word [esp + 0x12]
shl eax, 8
add eax, 0x80
xor edx, edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x8c], eax
cdq
and edx, 0xff
shl ecx, 8
add eax, edx
add ecx, 0x80
mov esi, eax
mov eax, ecx
cdq
and edx, 0xff
mov dword [esp + 0x60], ecx
add eax, edx
mov dword [esp + 0x90], ecx
sar eax, 8
mov ecx, eax
sar esi, 8
shl ecx, 9
add ecx, esi
js 0x55fa03
cmp ecx, dword [0x81a93c]
jge 0x55fa03
mov edx, dword [0x81a938]
mov ecx, dword [edx + ecx*4]
test ecx, ecx
jne 0x55fa1d
push eax
push esi
lea ecx, [esp + 0x9c]
call fcn.0042ad30
mov eax, dword [eax]
mov ecx, 0xa575f0
mov dword [0xa57614], eax
lea edx, [esp + 0x8c]
push edx
call fcn.004702c0
mov dword [esp + 0x64], eax
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call fcn.00564de0
test al, al
je 0x55fa51
mov ecx, dword [esp + 0x10]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x14]
inc ecx
add ebp, 4
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x14], 0x18
je 0x55fa8e
mov eax, dword [esp + 0x40]
inc ebx
cmp ebx, eax
jle 0x55f8b9
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
cmp edx, 0x18
je 0x55fa92
mov ecx, dword [esp + 0x28]
inc eax
dec ebp
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebp
jl 0x55f705
jmp 0x55fa92
mov edx, dword [esp + 0x14]
pop ebp
pop ebx
test edx, edx
jle 0x55faf6
dec edx
push edx
mov edx, dword [0xa255a0]
push 0
lea ecx, [edx + 0x218]
call fcn.0062fcf0
movsx edx, word [esp + eax*4 + 0x90]
lea ecx, [esp + eax*4 + 0x90]
movsx eax, word [esp + eax*4 + 0x92]
shl eax, 9
add eax, edx
js 0x55fadf
cmp eax, 0x40000
jge 0x55fadf
mov edx, dword [0x81a938]
mov eax, dword [edx + eax*4]
test eax, eax
jne 0x55fb2a
mov eax, dword [ecx]
pop edi
mov dword [0xa57614], eax
mov eax, 0xa575f0
pop esi
add esp, 0xe8
ret 4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
shl ecx, 9
add ecx, eax
mov eax, ecx
js 0x55fb1b
cmp eax, 0x40000
jge 0x55fb1b
mov ecx, dword [0x81a938]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x55fb2a
mov edx, dword [esp + 0x24]
mov eax, 0xa575f0
mov dword [0xa57614], edx
pop edi
pop esi
add esp, 0xe8
ret 4