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

Disassembly:
sub esp, 0x114
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov ebp, dword [ecx + 0x1c]
push esi
mov esi, edx
push edi
mov edi, eax
lea edx, [edi + 0x404]
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x10]
mov eax, 0x19
cmp eax, dword [ecx + 4]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x14]
sbb eax, eax
neg eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x130]
add ebx, edx
mov edx, dword [esi + 8]
lea eax, [edi + 0x708]
mov dword [esp + 0x48], eax
mov eax, dword [esi]
mov dword [esp + 0x18], ebx
mov ebx, dword [esi + 4]
sub ebx, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0xc]
sar ebx, 3
sub eax, edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], 0
cmp ebp, 1
jne 0x413063
cmp dword [ecx + 0x18], 0
mov dword [esp + 0x10], ebp
ja 0x41306b
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x134]
mov ecx, dword [ecx + 0x1c]
push ebp
mov ebp, dword [esp + 0x130]
push edx
mov edx, dword [esp + 0x138]
push edx
mov edx, dword [esp + 0x1c]
push ebp
push edx
mov edx, dword [esp + 0x13c]
push ecx
push edi
push edx
call fcn.00412170
add esp, 0x20
cmp eax, 0xffffff88
ja 0x41311f
add ebp, eax
mov eax, dword [esp + 0x18]
sub eax, ebp
cmp eax, 4
jge 0x4130c0
mov eax, 0xffffffba
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
cmp ebx, 0x7f
jae 0x4130cb
mov byte [ebp], bl
inc ebp
jmp 0x4130fa
cmp ebx, 0x7f00
jae 0x4130e6
mov ecx, ebx
shr ecx, 8
sub cl, 0x80
mov byte [ebp], cl
mov byte [ebp + 1], bl
add ebp, 2
jmp 0x4130fa
lea edx, [ebx - 0x7f00]
movzx eax, dx
mov byte [ebp], 0xff
mov word [ebp + 1], ax
add ebp, 3
test ebx, ebx
jne 0x41312a
mov esi, dword [esp + 0x128]
mov edi, dword [esp + 0x28]
add esi, 0x404
mov ecx, 0x378
rep movsd dword es:[edi], dword [esi]
mov eax, ebp
sub eax, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov dword [esp + 0x40], ebp
push esi
inc ebp
call fcn.004123c0
add esp, 4
mov dword [esp + 0x10], 0x23
cmp ebx, 0x5dc
jae 0x413165
mov eax, dword [esp + 0x24]
push ebx
push eax
lea ecx, [esp + 0x18]
push ecx
lea ebx, [esp + 0x58]
call fcn.00440170
mov ebx, dword [esp + 0x20]
add esp, 0xc
jmp 0x413186
mov edx, dword [esp + 0x24]
push 0
push ebx
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x5c]
push ecx
call fcn.00440200
add esp, 0x14
mov esi, dword [esp + 0x128]
mov edx, dword [esi + 0x11e0]
lea ecx, [edi + 0x11e0]
mov dword [ecx], edx
mov edx, dword [esp + 0x1c]
push edx
push 0x6aa298
lea edx, [esi + 0xcb4]
push edx
push 9
push ebx
push eax
mov eax, dword [esp + 0x28]
push eax
lea edx, [esp + 0x68]
push edx
mov eax, 1
push ecx
lea ecx, [eax + 5]
call fcn.004126d0
mov ecx, dword [esp + 0x158]
mov edx, dword [esp + 0x48]
add esp, 0x24
push ecx
push 0x524
lea ecx, [esi + 0xcb4]
push ecx
mov ecx, dword [esp + 0x1c]
push 0x23
push 6
push 0x6aa298
push ebx
push edx
mov edx, dword [esp + 0x38]
push ecx
push eax
mov dword [esp + 0x5c], eax
lea eax, [edi + 0xcb4]
push 9
sub edx, ebp
push eax
push edx
lea edx, [esp + 0x80]
mov ecx, ebp
mov dword [esp + 0x78], eax
call fcn.00412810
add esp, 0x34
cmp eax, 0xffffff88
ja 0x41311f
cmp dword [esp + 0x34], 2
jne 0x413231
mov dword [esp + 0x20], ebp
add ebp, eax
mov eax, dword [esp + 0x134]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x34]
mov eax, ebx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x1f
call fcn.004404b0
mov edx, dword [esi + 0x11d8]
mov dword [edi + 0x11d8], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [edi + 0x11d8]
push 0x6aa424
mov edx, 0x1c
cmp edx, dword [esp + 0x20]
lea edx, [esi + 0x404]
push edx
mov edx, dword [esp + 0x28]
push 8
push ebx
push edx
mov edx, dword [esp + 0x30]
push edx
lea edx, [esp + 0x70]
push edx
sbb eax, eax
push ecx
inc eax
mov ecx, 5
call fcn.004126d0
mov ecx, dword [esp + 0x160]
mov edx, dword [esp + 0x58]
add esp, 0x2c
push ecx
push 0x304
lea ecx, [esi + 0x404]
push ecx
mov ecx, dword [esp + 0x1c]
push 0x1c
push 5
push 0x6aa424
push ebx
push edx
mov edx, dword [esp + 0x48]
push ecx
push eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
push 8
push edx
sub eax, ebp
push eax
lea edx, [esp + 0x80]
mov ecx, ebp
call fcn.00412810
add esp, 0x34
cmp eax, 0xffffff88
ja 0x41311f
cmp dword [esp + 0x14], 2
jne 0x41330a
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x134]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x50]
add ebp, eax
push edx
mov eax, ebx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x34
call fcn.004404b0
mov edx, dword [esp + 0x24]
mov ecx, dword [esi + 0x11dc]
push edx
push 0x6aa3b8
add esi, 0x708
push esi
push 9
push ebx
push eax
mov eax, dword [esp + 0x30]
add edi, 0x11dc
mov dword [edi], ecx
push eax
lea ecx, [esp + 0x70]
push ecx
mov eax, 1
push edi
lea ecx, [eax + 5]
call fcn.004126d0
mov edx, dword [esp + 0x160]
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x3c]
add esp, 0x2c
push edx
mov edx, dword [esp + 0x1c]
push 0x5ac
push esi
mov esi, dword [esp + 0x54]
push 0x34
push 6
push 0x6aa3b8
push ebx
push edi
push ecx
push eax
push 9
sub edx, ebp
push esi
push edx
lea edx, [esp + 0x80]
mov ecx, ebp
mov dword [esp + 0x50], eax
call fcn.00412810
add esp, 0x34
cmp eax, 0xffffff88
ja 0x41311f
mov ecx, dword [esp + 0x1c]
cmp ecx, 2
jne 0x4133ca
mov dword [esp + 0x20], ebp
mov edx, dword [esp + 0x38]
add ebp, eax
mov al, byte [esp + 0x34]
add al, al
add al, al
add al, byte [esp + 0x14]
push edx
mov edx, dword [esp + 0x48]
add al, al
add al, al
add al, cl
mov ecx, dword [esp + 0x44]
add al, al
add al, al
mov byte [ecx], al
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
push ebx
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x30]
push ecx
push edi
push esi
sub eax, ebp
mov ecx, ebp
call fcn.004129e0
add esp, 0x24
cmp eax, 0xffffff88
ja 0x41311f
add ebp, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x413116
mov edx, ebp
sub edx, eax
cmp edx, 4
jge 0x413116
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret