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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x54]
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
push dword [esp + 0x6c]
mov dword [esp + 0x34], eax
mov edi, ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], edx
push eax
push dword [esp + 0x70]
mov edx, edi
mov dword [esp + 0x5c], edi
push 1
push ebp
mov ecx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], 0
call fcn.00419cc0
add esp, 0x14
mov dword [esp + 0x44], eax
xor ebx, ebx
lea edx, [edi + 0x14]
mov dword [esp + 0x18], ebx
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x418c90
mov esi, ebx
sub edx, ecx
je 0x418cb4
nop dword [eax]
mov cl, byte [edi + esi + 0x14]
call fcn.00415180
inc esi
add ebx, eax
cmp esi, edx
jb 0x418ca0
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + 0xa9cd8]
mov eax, dword [eax]
cmp byte [eax + 0x9c9d3], 0
je 0x418d16
xor ebx, ebx
lea edx, [edi + 0x14]
mov dword [esp + 0x18], ebx
lea ecx, [edx + 1]
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x418ce0
mov esi, ebx
sub edx, ecx
je 0x418d04
nop dword [eax]
mov cl, byte [edi + esi + 0x14]
call fcn.00415070
inc esi
add ebx, eax
cmp esi, edx
jb 0x418cf0
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x20]
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
inc eax
mov dword [esp + 0x34], eax
jmp 0x418d1c
mov eax, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x419208
lea eax, [esi + 0x190]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
movzx ecx, ax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x48], ecx
nop dword [eax]
mov dword [esp + 0x2c], eax
mov edx, ebp
mov esi, edx
mov byte [esp + 0x13], 0
mov edx, dword [edx]
add esi, 8
or cl, 0xff
mov dword [esp + 0x54], edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x14], ecx
test edx, edx
je 0x418d85
xor eax, eax
movzx ecx, cl
cmp dword [edx + 0x24], 0x20
cmovne ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 0x1c]
cmp eax, 0x4d
je 0x418da9
cmp eax, 0x50
je 0x418da2
cmp eax, 0x53
je 0x418d9b
test cl, cl
jne 0x418dae
mov byte [esp + 0x13], 2
jmp 0x418dae
mov byte [esp + 0x13], 3
jmp 0x418dae
mov byte [esp + 0x13], 1
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [edx]
mov eax, dword [ebx + 0xdc]
imul edi, edx, 0x284
add edi, dword [eax + 0xccf5c]
mov eax, dword [esp + 0x38]
mov word [edi + 2], ax
mov eax, dword [esp + 0x2c]
mov word [edi + 4], ax
inc eax
mov word [edi], dx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
movzx eax, word [esi]
inc ax
mov word [edi + 6], ax
movzx eax, word [esi + 0x48c]
mov word [edi + 0x272], ax
movzx eax, word [esi + 8]
mov word [edi + 8], ax
movzx eax, word [esi + 8]
mov word [edi + 0xa], ax
mov dword [edi + 0xc], 0
movzx eax, word [esi + 4]
inc ax
mov word [edi + 0x10], ax
mov eax, dword [ebx + 0x130]
mov byte [edx + eax], cl
xor edx, edx
mov eax, dword [ebx + 0xdc]
mov dword [esp + 0x3c], edx
mov esi, dword [eax + 0xaa034]
mov eax, 1
mov dword [esp + 0x24], eax
test esi, esi
je 0x418e7c
nop word [eax + eax]
mov edx, dword [esi + 0x30]
lea ebx, [esi]
mov esi, dword [esi]
xor ecx, ecx
test edx, edx
jle 0x418e70
lea eax, [ebx + 0x34]
cmp dword [eax], ebp
je 0x418fc9
inc ecx
add eax, 4
cmp ecx, edx
jl 0x418e60
inc dword [esp + 0x24]
test esi, esi
jne 0x418e50
mov edx, dword [esp + 0x3c]
xor eax, eax
xor cl, cl
movzx eax, ax
mov word [edi + 0x266], ax
test ax, ax
jle 0x418eb7
movzx eax, byte [edi + 0x26c]
and al, 0xf
shl dl, 4
or al, dl
shl cl, 4
mov byte [edi + 0x26c], al
movzx eax, byte [edi + 0x26d]
and al, 0xf
or al, cl
mov byte [edi + 0x26d], al
mov al, byte [esp + 0x13]
mov ebx, dword [esp + 0x40]
mov byte [edi + 0x1f], al
mov eax, dword [esp + 0x14]
mov byte [edi + 0x20], al
mov byte [edi + 0x12], 1
mov word [edi + 0x17], 0
mov byte [edi + 0x19], 1
mov byte [edi + 0x1e], 0
movzx eax, word [ebx + 0xc]
dec ax
mov word [edi + 0x22], ax
movzx eax, word [ebx + 0x10]
dec ax
mov byte [edi + 0x2a], 1
mov word [edi + 0x24], ax
mov eax, dword [esp + 0x6c]
push 8
mov byte [edi + 0x275], al
call fcn.004592b8
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [esi], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 4], eax
movsx ecx, word [edi]
push ecx
mov ecx, dword [esp + 0x50]
call fcn.0041bd00
mov edx, dword [esp + 0x50]
mov dword [eax], esi
mov esi, dword [esp + 0x20]
mov dword [edi + 0x30], 0xffffffff
mov word [edi + 0x74], 0
mov dword [edi + 0x78], 0xffffffff
mov dword [edi + 0x7c], 0xffffffff
mov byte [edi + 0x80], 1
movzx eax, byte [ebx + 0x3ee]
mov byte [edi + 0x81], al
mov dword [edi + 0x84], 0xffffffff
mov dword [edi + 0x158], 0xffffffff
mov dword [edi + 0x22c], 0xffffffff
mov dword [edi + 0x244], 0xffffffff
mov byte [edi + 0x26e], 0
mov byte [edi + 0x271], 0
movzx eax, byte [edx + 0x487]
and al, 1
inc al
mov byte [edi + 0x268], al
mov ecx, dword [esi + 0xdc]
mov eax, dword [ebx]
cmp eax, dword [ecx + 0xa9db0]
jge 0x418fdc
test eax, eax
js 0x418fdc
mov ecx, dword [ecx + 0xa9da8]
je 0x418fde
nop
mov ecx, dword [ecx]
sub eax, 1
jne 0x418fc0
jmp 0x418fde
mov edx, dword [ebx + 0x2c]
mov cl, byte [ecx + ebx + 0x134]
mov eax, dword [esp + 0x24]
jmp 0x418e80
xor ecx, ecx
mov cl, byte [ecx + 0xd08]
mov al, byte [edi + 0x26b]
shl cl, 4
and al, 0xf
or cl, al
mov byte [edi + 0x26b], cl
test byte [edx + 0x487], 4
je 0x419010
mov al, byte [edi + 0x26c]
and al, 0xf1
or al, 1
mov byte [edi + 0x26c], al
test byte [edx + 0x487], 2
je 0x419025
and cl, 0xf1
or cl, 1
mov byte [edi + 0x26b], cl
mov eax, dword [esi + 0xdc]
mov cl, byte [edx + 0x485]
mov eax, dword [eax + 0xa9cd8]
mov eax, dword [eax]
cmp byte [eax + 0x9c9d3], 0
je 0x419054
mov byte [edi + 0x269], cl
mov al, byte [edx + 0x486]
cmp al, 2
jb 0x419067
jmp 0x41906e
shr cl, 2
mov byte [edi + 0x269], cl
mov al, byte [edx + 0x486]
cmp al, 4
ja 0x41906b
xor al, al
jmp 0x41906e
shr al, 2
mov edx, 0x26a
mov ecx, edi
mov byte [edx + ecx], al
mov eax, dword [esp + 0x68]
mov byte [edi + 0x270], al
mov al, byte [ebx + 0x490]
mov byte [edi + 0x274], al
cmp dword [ebx + 0x1c], 0x20
jne 0x4191a4
push dword [esp + 0x6c]
mov edx, ebx
push esi
call fcn.00419520
push dword [esp + 0x74]
mov edx, ebx
mov ecx, edi
push esi
call fcn.004196f0
push dword [esp + 0x7c]
mov edx, ebx
mov ecx, edi
push esi
call fcn.004197f0
push dword [esp + 0x84]
mov edx, ebx
mov ecx, edi
push esi
call fcn.004198f0
push dword [esp + 0x8c]
mov edx, ebx
mov ecx, edi
push esi
call fcn.00419a20
movzx eax, byte [ebx + 0x3e4]
add esp, 0x28
mov byte [edi + 0x26], al
movzx eax, byte [ebx + 0x3e8]
mov byte [edi + 0x27], al
movzx eax, byte [ebx + 0x3ed]
mov byte [edi + 0x29], al
cmp byte [ebx + 0x3e9], 0
sete al
mov byte [edi + 0x260], al
cmp byte [ebx + 0x3ea], 0
sete al
mov byte [edi + 0x261], al
movzx eax, byte [ebx + 0x3eb]
mov byte [edi + 0x262], al
mov cl, byte [ebx + 0x3ec]
movzx eax, byte [edi + 0x263]
and al, 0xf0
shr cl, 1
not cl
and cl, 1
or al, cl
mov byte [edi + 0x263], al
movzx eax, byte [ebx + 0x3ec]
shl al, 4
not al
and al, 0x10
or al, cl
mov byte [edi + 0x263], al
movzx ecx, byte [ebx + 0x3ef]
mov al, byte [edi + 0x26d]
xor cl, al
and cl, 0xf
xor cl, al
mov byte [edi + 0x26d], cl
mov eax, dword [ebx + 0x3f0]
mov dword [edi + 0x278], eax
mov eax, dword [ebx + 0x6a4]
mov dword [edi + 0x27c], eax
mov ax, word [ebx + 0x6a8]
mov word [edi + 0x280], ax
cmp dword [ebx + 0x1c], 0x4d
mov ecx, dword [esp + 0x1c]
je 0x4191e0
cmp byte [ebx + 0x490], 0
jne 0x4191e0
test ecx, ecx
jne 0x4191e0
mov ebx, dword [esp + 0x6c]
mov edx, edi
push ebx
push dword [esp + 0x1c]
mov ecx, esi
call fcn.00419310
push 1
push ebx
mov edx, edi
mov ecx, esi
call fcn.00419210
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x54]
inc dword [eax]
cmp byte [esp + 0x14], 0xff
jne 0x418d56
mov eax, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esp + 0x34]
jl 0x418d50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret