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

Disassembly:
sub esp, 0x16c
mov eax, dword [esp + 0x178]
mov ecx, dword [eax + 0x510]
push ebx
mov ebx, dword [esp + 0x180]
push ebp
mov ebp, dword [eax + 0x504]
push esi
mov esi, dword [esp + 0x180]
mov edx, dword [esi + 0x40]
mov eax, dword [edx + 4]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0xb20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
test ebx, ebx
je 0x56d3b0
push edi
xor edi, edi
test ebp, ebp
jle 0x56cdd1
jmp 0x56cd80
mov edx, dword [esp + 0x14]
mov esi, dword [ebx + edi*4]
mov eax, dword [edx + 0x340]
mov ecx, esi
dec eax
and ecx, 0x7fff
cmp eax, 3
ja case.default.0x56cd9b
jmp dword [eax*4 + 0x56d3ec]
sar ecx, 2
jmp case.default.0x56cd9b
sar ecx, 3
jmp case.default.0x56cd9b
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jmp case.default.0x56cd9b
sar ecx, 4
and esi, 0x8000
or esi, ecx
mov dword [ebx + edi*4], esi
inc edi
cmp edi, ebp
jl 0x56cd80
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
cmp ebp, 2
jle 0x56cf1e
mov edx, dword [esp + 0x14]
mov ecx, ebx
lea eax, [ecx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x188]
add eax, 0x30c
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x78]
add edx, 0x34c
sub eax, ecx
add ebp, 0xfffffffe
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebp
nop
mov eax, dword [esp + 0x1c]
mov ebp, dword [eax + 0xfc]
mov ebx, dword [eax]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + ebp*4 + 0x344]
mov eax, dword [esp + 0x18c]
mov esi, dword [eax + ebp*4]
mov ecx, dword [eax + ebx*4]
and esi, 0x7fff
and ecx, 0x7fff
sub ecx, esi
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx]
sub edx, edi
imul eax, edx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + ebx*4 + 0x344]
sub edx, edi
mov dword [esp + 0x2c], edx
cdq
idiv dword [esp + 0x2c]
test ecx, ecx
jns 0x56ce84
mov ecx, esi
sub ecx, eax
jmp 0x56ce87
lea ecx, [eax + esi]
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
test eax, 0x8000
jne 0x56ceee
cmp ecx, eax
je 0x56ceee
mov edx, dword [esp + 0x188]
mov edx, dword [edx + 0x50c]
sub edx, ecx
cmp edx, ecx
jl 0x56cead
mov edx, ecx
sub eax, ecx
jns 0x56ceca
mov ecx, edx
neg ecx
cmp eax, ecx
jge 0x56cec0
sub edx, eax
lea eax, [edx - 1]
jmp 0x56ced4
lea edx, [eax + eax]
or eax, 0xffffffff
sub eax, edx
jmp 0x56ced4
cmp eax, edx
jl 0x56ced2
add eax, edx
jmp 0x56ced4
add eax, eax
mov ecx, dword [esp + 0x24]
mov dword [ecx + edi], eax
mov eax, dword [esp + 0x18c]
mov dword [eax + ebp*4], esi
and dword [eax + ebx*4], 0x7fff
jmp 0x56cf01
mov edx, dword [esp + 0x24]
or ecx, 0x8000
mov dword [edi], ecx
mov dword [edx + edi], 0
mov eax, 4
add dword [esp + 0x1c], eax
add dword [esp + 0x10], eax
add edi, eax
dec dword [esp + 0x18]
mov dword [esp + 0x20], edi
jne 0x56ce20
mov edi, dword [esp + 0x180]
push 1
push 1
push edi
call fcn.00401c50
mov esi, dword [esp + 0x194]
mov edx, dword [esi + 0x50c]
inc dword [esi + 0x51c]
lea eax, [edx - 1]
add esp, 0xc
xor ecx, ecx
test eax, eax
je 0x56cf55
mov edi, edi
inc ecx
shr eax, 1
jne 0x56cf50
lea eax, [ecx + ecx]
add dword [esi + 0x518], eax
lea eax, [edx - 1]
xor ecx, ecx
test eax, eax
je 0x56cf6c
inc ecx
shr eax, 1
jne 0x56cf67
push ecx
mov ecx, dword [esp + 0x7c]
push ecx
push edi
call fcn.00401c50
mov eax, dword [esi + 0x50c]
add esp, 0xc
dec eax
mov ecx, 0
je 0x56cf95
lea esp, [esp]
inc ecx
shr eax, 1
jne 0x56cf90
mov edx, dword [esp + 0x7c]
push ecx
push edx
push edi
call fcn.00401c50
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [eax], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 2
jle 0x56d20e
mov ecx, eax
add ecx, 4
mov dword [esp + 0x24], ecx
lea ebx, [ebx]
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + eax*4 + 0xc0]
mov edx, dword [ecx + eax*4 + 0x80]
xor ebp, ebp
mov esi, 1
mov ecx, edi
shl esi, cl
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x1c], ebp
cmp edi, ebp
je 0x56d142
xor eax, eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
cmp esi, ebp
jle 0x56d08f
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
add edx, 0xa
shl edx, 5
add edx, dword [esp + 0x14]
mov edi, dword [edx]
cmp edi, ebp
jge 0x56d075
mov dword [esp + eax*4 + 0x38], 1
jmp 0x56d083
mov edi, dword [ecx + edi*4 + 0x720]
mov edi, dword [edi + 4]
mov dword [esp + eax*4 + 0x38], edi
inc eax
add edx, 4
cmp eax, esi
jl 0x56d065
mov edi, dword [esp + 0x10]
xor edx, edx
cmp dword [esp + 0x18], ebp
jle 0x56d0dd
mov eax, dword [esp + 0x28]
lea ecx, [esp + eax*4 + 0x78]
mov dword [esp + 0x10], ecx
xor eax, eax
cmp esi, ebp
jle 0x56d0c1
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
nop
cmp ecx, dword [esp + eax*4 + 0x38]
jl 0x56d0bd
inc eax
cmp eax, esi
jl 0x56d0b0
jmp 0x56d0c1
mov dword [esp + edx*4 + 0x58], eax
mov eax, dword [esp + edx*4 + 0x58]
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x1c], edi
add dword [esp + 0x10], 4
shl eax, cl
inc edx
or ebx, eax
cmp edx, dword [esp + 0x18]
jl 0x56d0a3
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + ecx*4 + 0x100]
mov edx, dword [esp + 0x34]
lea ecx, [eax*8]
sub ecx, eax
lea esi, [edx + ecx*8]
cmp ebx, ebp
jl 0x56d133
mov eax, dword [esi + 0xc]
cmp ebx, dword [eax + 4]
jge 0x56d133
mov eax, dword [eax + 8]
movsx ecx, byte [eax + ebx]
mov edx, dword [esi + 0x14]
mov eax, dword [edx + ebx*4]
push ecx
mov ecx, dword [esp + 0x184]
push eax
push ecx
call fcn.00401c50
mov edx, dword [esi + 0xc]
mov eax, dword [edx + 8]
movsx eax, byte [eax + ebx]
add esp, 0xc
jmp 0x56d135
xor eax, eax
mov ecx, dword [esp + 0x188]
add dword [ecx + 0x514], eax
xor ebx, ebx
cmp dword [esp + 0x18], ebp
jle 0x56d1ec
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
lea edx, [ecx*8 + 0x50]
mov dword [esp + 0x20], edx
lea ebp, [esp + ebp*4 + 0x78]
jmp 0x56d170
mov eax, dword [esp + ebx*4 + 0x58]
add eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
test eax, eax
js 0x56d1e2
mov esi, dword [ebp]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 0x34]
cmp esi, dword [eax + edx*8 + 4]
lea edi, [eax + edx*8]
jge 0x56d1e2
test esi, esi
js 0x56d1d3
mov eax, dword [edi + 0xc]
cmp esi, dword [eax + 4]
jge 0x56d1d3
mov ecx, dword [eax + 8]
movsx edx, byte [ecx + esi]
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + esi*4]
push edx
mov edx, dword [esp + 0x184]
push ecx
push edx
call fcn.00401c50
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 8]
movsx eax, byte [ecx + esi]
add esp, 0xc
jmp 0x56d1d5
xor eax, eax
mov ecx, dword [esp + 0x188]
add dword [ecx + 0x518], eax
inc ebx
add ebp, 4
cmp ebx, dword [esp + 0x18]
jl 0x56d170
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add dword [esp + 0x28], edx
add dword [esp + 0x24], 4
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [ecx]
jl 0x56cfd0
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + 0x340]
mov eax, dword [esp + 0x18c]
imul ebx, dword [eax]
mov edi, dword [esp + 0x184]
mov edx, dword [edi + 0x1c]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + edx*4]
mov esi, dword [esp + 0x188]
cdq
sub eax, edx
xor ecx, ecx
sar eax, 1
cmp dword [esi + 0x504], 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], 1
jle 0x56d37b
lea ecx, [esi + 0x108]
mov dword [esp + 0x20], ecx
lea esp, [esp]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18c]
mov ecx, dword [edx]
mov edx, dword [eax + ecx*4]
mov eax, edx
and eax, 0x7fff
cmp eax, edx
jne 0x56d35d
mov edx, dword [esp + 0x14]
mov ebp, dword [edx + 0x340]
mov esi, dword [edx + ecx*4 + 0x344]
imul ebp, eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov ecx, ebp
sub ecx, ebx
mov eax, ecx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov eax, ecx
mov dword [esp + 0x1c], esi
sub esi, dword [esp + 0x24]
cdq
idiv esi
mov dword [esp + 0x18], eax
test ecx, ecx
jns 0x56d2d6
mov edx, eax
dec edx
mov dword [esp + 0x2c], edx
jmp 0x56d2df
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
imul eax, esi
cdq
xor eax, edx
sub eax, edx
sub edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], 0
cmp dword [esp + 0x30], eax
jle 0x56d303
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x10]
jge 0x56d317
mov ecx, dword [esp + 0x190]
mov dword [ecx + eax*4], ebx
inc eax
cmp eax, dword [esp + 0x10]
jge 0x56d345
mov ecx, dword [esp + 0x34]
add ecx, edi
cmp ecx, esi
jl 0x56d330
sub ecx, esi
add ebx, dword [esp + 0x2c]
jmp 0x56d334
add ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x190]
mov dword [edx + eax*4], ebx
inc eax
cmp eax, dword [esp + 0x10]
jl 0x56d322
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x188]
mov edi, dword [esp + 0x184]
mov dword [esp + 0x24], eax
mov ebx, ebp
mov eax, dword [esp + 0x28]
add dword [esp + 0x20], 4
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [esi + 0x504]
jl 0x56d270
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x24]
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jge 0x56d3a0
mov esi, dword [esp + 0x190]
mov edi, edi
mov dword [esi + ecx*4], ebx
mov eax, dword [edi + 0x24]
cdq
sub eax, edx
inc ecx
sar eax, 1
cmp ecx, eax
jl 0x56d390
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x16c
ret
mov ecx, dword [esp + 0x17c]
push 1
push 0
push ecx
call fcn.00401c50
mov eax, dword [esi + 0x24]
cdq
sub eax, edx
mov edx, dword [esp + 0x198]
sar eax, 1
add eax, eax
add eax, eax
push eax
push 0
push edx
call fcn.00551820
add esp, 0x18
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x16c
ret