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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10181f80
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101cd7b4]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
xor ebx, ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
lea eax, [esi + 8]
mov dword [esp + 0x44], eax
add eax, 4
push eax
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x44], 0x10199608
mov dword [esp + 0x24], eax
call dword [0x10199070]
mov eax, dword [esi + 0x28]
mov eax, dword [eax]
add esi, 0x24
mov ebp, eax
mov eax, dword [esi + 4]
mov edi, esi
mov byte [esp + 0x88], 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x3c], eax
jmp 0x100569d0
cmp edi, ebx
je 0x100569d8
cmp edi, esi
je 0x100569dd
call fcn.10158fad
cmp ebp, dword [esp + 0x3c]
je 0x10056b92
cmp edi, ebx
jne 0x100569f0
call fcn.10158fad
cmp ebp, dword [edi + 4]
jne 0x100569fa
call fcn.10158fad
lea ecx, [esp + 0x60]
lea edi, [ebp + 0x10]
push ecx
lea ecx, [edi + 0x18]
call fcn.100d73e0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x88], 2
jb 0x10056a1d
mov eax, dword [eax + 4]
jmp 0x10056a20
add eax, 4
push eax
call fcn.1002ae70
add esp, 4
test al, al
sete bl
cmp dword [esp + 0x78], 0x10
mov byte [esp + 0x88], 1
jb 0x10056a4a
mov edx, dword [esp + 0x64]
push edx
call fcn.10158c57
add esp, 4
test bl, bl
mov ebx, dword [esp + 0x24]
je 0x10056a9b
cmp ebp, dword [ebx + 4]
jne 0x10056a5c
call fcn.10158fad
lea eax, [esp + 0x60]
push eax
lea ecx, [edi + 0x18]
call fcn.10059b10
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 0x30
mov byte [esp + 0x8c], 3
call fcn.10056810
cmp dword [esp + 0x78], 0x10
mov byte [esp + 0x88], 1
jb 0x10056b66
mov ecx, dword [esp + 0x64]
push ecx
jmp 0x10056b5e
xor eax, eax
cmp ebp, dword [ebx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jne 0x10056aaf
call fcn.10158fad
lea edx, [esp + 0x60]
push edx
lea ecx, [edi + 0x18]
call fcn.100d73e0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x88], 4
jb 0x10056acf
mov eax, dword [eax + 4]
jmp 0x10056ad2
add eax, 4
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.10029d00
add esp, 8
cmp dword [esp + 0x78], 0x10
mov byte [esp + 0x88], 1
jb 0x10056afc
mov edx, dword [esp + 0x64]
push edx
call fcn.10158c57
add esp, 4
cmp ebp, dword [ebx + 4]
jne 0x10056b06
call fcn.10158fad
lea ecx, [edi + 0x18]
call fcn.100598d0
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x10056b1e
mov eax, dword [esp + 0x18]
cmp eax, edx
je 0x10056b7a
cmp ebp, dword [ebx + 4]
jne 0x10056b28
call fcn.10158fad
lea ecx, [esp + 0x60]
push ecx
lea ecx, [edi + 0x18]
call fcn.10059b10
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 0x30
mov byte [esp + 0x8c], 5
call fcn.10056810
cmp dword [esp + 0x78], 0x10
mov byte [esp + 0x88], 1
jb 0x10056b66
mov edx, dword [esp + 0x64]
push edx
call fcn.10158c57
add esp, 4
cmp ebp, dword [ebx + 4]
jne 0x10056b70
call fcn.10158fad
push edi
lea ecx, [esp + 0x54]
call fcn.10055ab0
lea ecx, [esp + 0x24]
call fcn.10050bd0
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
xor ebx, ebx
jmp 0x100569d0
mov edi, dword [esp + 0x54]
cmp edi, ebx
mov ecx, dword [esp + 0x58]
jne 0x10056ba4
mov dword [esp + 0x1c], ebx
jmp 0x10056bbd
mov edx, ecx
sub edx, edi
mov eax, 0x66666667
imul edx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
jle 0x10056c78
mov dword [esp + 0x14], 0
jmp 0x10056bda
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
test edi, edi
je 0x10056bf5
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x10056bfe
call fcn.10158fad
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
add edi, eax
push edi
mov ecx, esi
call fcn.10051420
test esi, esi
mov ebp, eax
jne 0x10056c17
call fcn.10158fad
push edi
mov ecx, esi
call fcn.100511c0
test esi, esi
mov edi, eax
jne 0x10056c2a
call fcn.10158fad
mov eax, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
test eax, eax
je 0x10056c3c
cmp eax, esi
je 0x10056c41
call fcn.10158fad
cmp dword [esp + 0x30], ebp
je 0x10056c56
lea ecx, [esp + 0x2c]
call fcn.10050bd0
mov eax, dword [esp + 0x2c]
jmp 0x10056c34
push ebp
push esi
push edi
push esi
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.10052640
add dword [esp + 0x14], 0x14
add ebx, 1
cmp ebx, dword [esp + 0x1c]
jl 0x10056bd2
mov edx, dword [esi + 4]
mov ebp, dword [edx]
xor ebx, ebx
mov edi, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
lea ecx, [ecx]
test edi, edi
je 0x10056c98
cmp edi, esi
je 0x10056c9d
call fcn.10158fad
cmp ebp, dword [esp + 0x3c]
je 0x10056cd7
test edi, edi
jne 0x10056cac
call fcn.10158fad
cmp ebp, dword [edi + 4]
jne 0x10056cb6
call fcn.10158fad
lea ecx, [ebp + 0x28]
call fcn.10059870
add ebx, eax
adc dword [esp + 0x30], edx
lea ecx, [esp + 0x24]
call fcn.10050bd0
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
jmp 0x10056c90
mov eax, dword [esp + 0x20]
push eax
call dword [0x10199074]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x10056cf3
push eax
call fcn.10158c57
add esp, 4
mov edx, dword [esp + 0x30]
mov eax, ebx
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret