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

Disassembly:
sub esp, 0xc00
mov eax, dword [0x100a9450]
xor eax, esp
mov dword [esp + 0xbfc], eax
mov eax, dword [esp + 0xc04]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x50], eax
xor edi, edi
xor eax, eax
push 0x7f8
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0xcc]
push edi
push eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd0], edi
call fcn.10072cc0
xor eax, eax
add esp, 0xc
push 0x38
lea ecx, [esp + 0x8c]
push edi
push ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edi
call fcn.10072cc0
add esp, 0xc
push 0x244
lea edx, [esp + 0x8c4]
push edi
push edx
call fcn.10072cc0
add esp, 0xc
mov byte [esp + 0x944], 0x10
mov dword [esp + 0x952], edi
mov dword [esp + 0x945], edi
mov dword [esp + 0x949], edi
call fcn.100642d9
mov ebp, dword [esp + 0xc18]
mov ebx, dword [esp + 0xc1c]
mov dword [esp + 0x8c6], eax
or eax, 0xffffffff
mov dword [esp + 0x8c0], 0x10002ce0
mov byte [esp + 0x8c4], 0
mov byte [esp + 0x8c5], 0
mov byte [esp + 0x8ca], 0
mov byte [esp + 0x8d3], 0
mov byte [esp + 0x944], 0x20
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
jmp 0x10056292
jbe 0x10056290
mov dword [esp + 0x10], 1
mov edi, edi
xor edi, edi
cmp dword [esp + 0x10], edi
je 0x100562c5
mov ecx, dword [esp + 0x3c]
cmp ecx, edi
je 0x100565fe
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x34], eax
cmp eax, ecx
jae 0x100565fe
mov ebp, dword [esp + eax*8 + 0x40]
mov ebx, dword [esp + eax*8 + 0x44]
mov dword [esp + 0x2c], edi
mov ecx, dword [esp + 0x24]
cmp ebx, ecx
jb 0x100562f0
ja 0x100562d5
cmp ebp, dword [esp + 0x20]
jb 0x100562f0
mov eax, dword [esp + 0x28]
cdq
add eax, dword [esp + 0x20]
adc edx, ecx
add eax, 0xfffffff1
adc edx, 0xffffffff
cmp ebx, edx
jb 0x1005635c
ja 0x100562f0
cmp ebp, eax
jb 0x1005635c
mov eax, dword [esp + 0xc1c]
mov ecx, dword [esp + 0xc18]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x50]
push ebx
push ebp
push eax
mov eax, dword [esi + 0xc]
push ecx
push edx
call eax
add esp, 0x14
test eax, eax
jne 0x10056324
mov dword [esp + 0x10], 1
jmp 0x10056292
mov ecx, dword [esp + 0x30]
mov eax, dword [esi]
push ecx
push 0x100
lea edx, [esp + 0xb10]
push edx
push ebx
push ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
call eax
add esp, 0x14
cmp eax, edi
mov dword [esp + 0x28], eax
jg 0x1005635c
mov dword [esp + 0x10], 1
jmp 0x10056292
mov ecx, ebp
sub ecx, dword [esp + 0x20]
xor eax, eax
lea esi, [esp + ecx + 0xb08]
jmp 0x10056370
mov ecx, dword [esp + eax*8 + 0xc0]
mov edx, dword [esp + eax*8 + 0xc4]
cmp ecx, ebp
jne 0x10056386
cmp edx, ebx
je 0x10056317
or ecx, edx
je 0x10056392
inc eax
cmp eax, 0x100
jb 0x10056370
mov eax, dword [esp + 0x38]
cmp eax, 0x100
jae 0x100565fe
mov edx, dword [esp + 0x20]
sub edx, ebp
add edx, esi
add edx, dword [esp + 0x28]
mov dword [esp + eax*8 + 0xc0], ebp
mov dword [esp + eax*8 + 0xc4], ebx
inc eax
mov dword [esp + 0x8cb], esi
lea esi, [esp + 0x8c0]
mov dword [esp + 0x38], eax
mov dword [esp + 0x945], ebp
mov dword [esp + 0x949], ebx
mov dword [esp + 0x8c0], 0x10002cc0
mov dword [esp + 0x8cf], edx
mov byte [esp + 0x8c4], 0
mov byte [esp + 0x8c5], 0
mov byte [esp + 0x8ca], 0
mov byte [esp + 0x8d3], 0
mov byte [esp + 0x8e0], 0
mov byte [esp + 0x900], 0
call fcn.10002bf0
test eax, eax
jne 0x1005642b
xor edx, edx
jmp 0x1005644b
mov eax, dword [esp + 0x8d4]
cmp eax, edi
je 0x10056443
lea ecx, [esp + 0x8c0]
push ecx
call eax
add esp, 4
movzx edx, byte [esp + 0x8ca]
xor ecx, ecx
mov eax, edx
or eax, ecx
mov dword [esp + 0x14], edx
je 0x100565fe
mov eax, dword [esp + 0x952]
cmp eax, 0x1a6
jg 0x10056509
je 0x1005651f
cmp eax, edi
je 0x1005651f
cmp eax, 0xd2
jle 0x1005648d
cmp eax, 0xde
jle 0x1005651f
push ecx
push edx
lea edi, [esp + 0x60]
lea eax, [esp + 0x8c8]
call fcn.100556b0
add esp, 8
lea esi, [esp + 0x84]
lea eax, [esp + 0x8c0]
call fcn.10055aa0
mov eax, dword [esp + 0x952]
cmp eax, 0x1a6
je 0x10056627
cmp eax, 0xf2
jne 0x1005652c
mov ecx, dword [esp + 0x18]
or ecx, dword [esp + 0x1c]
je 0x10056627
cmp dword [esp + 0x956], 0x90
jne 0x100564fc
mov al, byte [esp + 0x95a]
cmp al, 8
je 0x1005655b
cmp al, 0x10
je 0x10056551
cmp al, 0x20
je 0x10056548
mov dword [esp + 0x10], 1
jmp 0x100565dc
cmp eax, 0x1b5
jl 0x1005648d
cmp eax, 0x1b6
jg 0x1005648d
mov dword [esp + 0x10], 1
jmp 0x10056292
cmp eax, 0x1e
je 0x10056577
cmp eax, 0xf2
je 0x100564dc
add ebp, dword [esp + 0x14]
mov eax, 0
adc ebx, eax
jmp 0x100565dc
mov eax, dword [esp + 0x95b]
jmp 0x10056563
movsx eax, word [esp + 0x95b]
jmp 0x10056563
movsx eax, byte [esp + 0x95b]
cdq
mov ecx, eax
add ecx, dword [esp + 0x14]
mov eax, 0
adc edx, eax
add ebp, ecx
adc ebx, edx
jmp 0x100565dc
cmp dword [esp + 0x956], 0x90
mov dword [esp + 0x10], 1
jne 0x100565dc
mov edx, dword [esp + 0x18]
or edx, dword [esp + 0x1c]
jne 0x100565dc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x95b]
mov edi, edx
add ecx, ebp
cdq
mov esi, edi
adc esi, ebx
add eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
adc edx, edi
add eax, ebp
adc edx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov ebp, ecx
mov ebx, esi
mov dword [esp + 0x3c], 2
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x2c]
inc eax
cmp dword [esp + 0x58], 3
mov dword [esp + 0x2c], eax
jbe 0x100565f6
cmp eax, 0x80
jmp 0x10056284
cmp eax, 0x40
jmp 0x10056284
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, ecx
or eax, edx
je 0x10056615
mov eax, dword [esp + 0x54]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [esp + 0x84]
lea esi, [esp + 0x58]
call fcn.10055fc0
jmp 0x1005662a
or eax, 0xffffffff
mov ecx, dword [esp + 0xc0c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10063ade
add esp, 0xc00
ret