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

Disassembly:
sub esp, 0x64
mov eax, dword [esp + 0x78]
push ebx
mov ebx, dword [esp + 0x74]
push ebp
push esi
push edi
mov edi, dword [esp + 0x78]
mov ebp, ecx
mov ecx, dword [esp + 0x7c]
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x8c]
mov dword [esp + 0x58], edx
mov edx, ebp
push 0
push ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x6c], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], 0
call fcn.00419cc0
lea esi, [ebp + 0x14]
mov dword [esp + 0x30], eax
mov edx, esi
mov dword [esp + 0x50], esi
add esp, 0x14
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4182d3
sub edx, ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x5c], edx
mov edx, esi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4182f0
mov esi, 0
sub edx, ecx
je 0x418321
mov ebp, dword [esp + 0x3c]
xor ebx, ebx
mov cl, byte [esi + ebp]
call fcn.00415180
inc esi
add ebx, eax
cmp esi, edx
jb 0x418306
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x3c], 0
mov eax, dword [esi + 0xdc]
mov eax, dword [eax + 0xa9cd8]
mov eax, dword [eax]
cmp byte [eax + 0x9c9d3], 0
je 0x418382
lea edx, [ebp + 0x14]
mov dword [esp + 0x30], 0
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x418352
mov esi, 0
sub edx, ecx
je 0x41837e
mov ebx, dword [esp + 0x30]
mov cl, byte [ebp + esi + 0x14]
call fcn.00415070
inc esi
add ebx, eax
cmp esi, edx
jb 0x418366
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
xor al, al
mov dword [esp + 0x64], ecx
mov ecx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov byte [esp + 0x1b], al
mov dword [esp + 0x40], 0x2631bebd
mov dword [esp + 0x44], 0x35343332
mov dword [esp + 0x6c], ecx
nop word [eax + eax]
movzx eax, al
cmp eax, 7
ja 0x4183be
mov al, byte [esp + eax + 0x40]
jmp 0x4183c0
xor al, al
lea edx, [ebp + 0x14]
mov byte [esp + 0x12], al
mov cl, al
call fcn.00415380
mov byte [esp + 0x27], al
test al, al
jne 0x4183e2
cmp byte [ebp + 0x44c], al
jle 0x418ad2
movsx eax, byte [esp + 0x12]
mov dword [esp + 0x60], eax
add eax, 0x43
cmp eax, 0x78
ja case.0x4183fa.67
movzx eax, byte [eax + 0x418b04]
jmp dword [eax*4 + 0x418aec]
add dword [esp + 0x1c], 5
mov dword [esp + 0x2c], 1
jmp 0x418445
add dword [esp + 0x1c], 0xa
mov dword [esp + 0x2c], 2
jmp 0x418445
add dword [esp + 0x1c], 0xf
mov dword [esp + 0x2c], 3
jmp 0x418445
add dword [esp + 0x1c], 0x14
mov dword [esp + 0x2c], 4
jmp 0x418445
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
lea eax, [esi + 0x190]
mov dword [esp + 0x68], eax
mov edx, ebx
mov byte [esp + 0x13], 0
mov ebx, dword [ebx]
add edx, 8
or ecx, 0xffffffff
mov dword [esp + 0x70], ebx
mov dword [esp + 0x54], edx
mov dword [esp + 0x34], ecx
test ebx, ebx
je 0x418486
xor eax, eax
movzx ecx, cl
cmp dword [ebx + 0x24], 0x20
cmovne ecx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [edx + 0x1c]
cmp eax, 0x4d
je 0x4184aa
cmp eax, 0x50
je 0x4184a3
cmp eax, 0x53
je 0x41849c
test cl, cl
jne 0x4184af
mov byte [esp + 0x13], 2
jmp 0x4184af
mov byte [esp + 0x13], 3
jmp 0x4184af
mov byte [esp + 0x13], 1
mov ecx, dword [edi]
mov eax, dword [esi + 0xdc]
mov ebx, dword [esp + 0x4c]
imul ebp, ecx, 0x284
add ebp, dword [eax + 0xccf5c]
mov dword [edx + 0x698], ecx
movzx eax, word [edi]
mov ecx, dword [esp + 0x30]
mov word [ebp], ax
movzx eax, bx
mov word [ebp + 2], ax
mov eax, dword [esp + 0x50]
mov word [ebp + 4], ax
inc eax
mov dword [esp + 0x50], eax
movzx eax, word [edx]
inc ax
mov word [ebp + 6], ax
movzx eax, word [edx + 0x48c]
mov word [ebp + 0x272], ax
movzx eax, word [edx + 8]
mov word [ebp + 8], ax
movzx eax, word [edx + 8]
mov word [ebp + 0xa], ax
mov dword [ebp + 0xc], 0
movzx eax, word [edx + 4]
xor edx, edx
inc ax
mov dword [esp + 0x48], edx
mov word [ebp + 0x10], ax
mov eax, dword [esi + 0x130]
mov byte [ebx + eax], cl
lea ebx, [edx + 1]
mov eax, dword [esi + 0xdc]
mov esi, dword [eax + 0xaa034]
test esi, esi
je 0x418576
mov edx, dword [esi + 0x30]
lea edi, [esi]
mov esi, dword [esi]
xor ecx, ecx
test edx, edx
jle 0x41856d
lea eax, [edi + 0x34]
mov edx, dword [esp + 0x38]
cmp dword [eax], edx
mov edx, dword [edi + 0x30]
je 0x418672
inc ecx
add eax, 4
cmp ecx, edx
jl 0x418556
inc ebx
test esi, esi
jne 0x418546
mov edx, dword [esp + 0x48]
xor ebx, ebx
xor cl, cl
movzx eax, bx
mov word [ebp + 0x266], ax
test ax, ax
jle 0x4185af
mov al, byte [ebp + 0x26c]
and al, 0xf
shl dl, 4
or al, dl
shl cl, 4
mov byte [ebp + 0x26c], al
mov al, byte [ebp + 0x26d]
and al, 0xf
or al, cl
mov byte [ebp + 0x26d], al
mov ebx, dword [esp + 0x28]
xor esi, esi
mov al, byte [esp + 0x27]
mov byte [ebp + 0x12], al
mov cl, byte [ebx + 0x44c]
test cl, cl
jle 0x4185f0
lea edi, [ebx + 0x44d]
nop dword [eax]
mov cl, byte [esp + 0x12]
mov edx, edi
call fcn.00415380
mov byte [esi + ebp + 0x13], al
add edi, 7
mov cl, byte [ebx + 0x44c]
inc esi
movsx eax, cl
cmp esi, eax
jl 0x4185d0
mov eax, dword [esp + 0x5c]
xor ebx, ebx
mov byte [ebp + 0x17], cl
mov byte [ebp + 0x18], 0
mov byte [ebp + 0x19], al
cmp eax, 2
je 0x41860a
cmp eax, 3
jne 0x41860f
mov ebx, 1
mov eax, dword [esp + 0x28]
xor edx, edx
cmp byte [eax + 0x44c], dl
jle 0x418657
lea esi, [eax + 0x44d]
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418628
sub ecx, edi
mov byte [edx + ebp + 0x1a], cl
cmp ecx, 2
je 0x41863f
cmp ecx, 3
jne 0x418644
mov ebx, 1
mov eax, dword [esp + 0x28]
inc edx
add esi, 7
movsx eax, byte [eax + 0x44c]
cmp edx, eax
jl 0x418623
mov eax, dword [esp + 0x2c]
mov byte [ebp + 0x1e], al
mov al, byte [esp + 0x12]
cmp al, 0xbd
je 0x418681
cmp al, 0xbe
je 0x418681
cmp al, 0x26
je 0x418681
xor eax, eax
jmp 0x418685
mov edx, dword [edi + 0x2c]
mov cl, byte [ecx + edi + 0x134]
jmp 0x41857a
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x54]
mov byte [ebp + 0x26f], al
mov al, byte [esp + 0x13]
mov byte [ebp + 0x1f], al
mov eax, dword [esp + 0x34]
mov byte [ebp + 0x20], al
movzx eax, word [edi + 0xc]
dec ax
mov word [ebp + 0x22], ax
movzx eax, word [edi + 0x10]
dec ax
mov byte [ebp + 0x2a], 1
mov word [ebp + 0x24], ax
mov eax, dword [esp + 0x14]
push 8
mov byte [ebp + 0x275], al
call fcn.004592b8
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 4], eax
movsx ecx, word [ebp]
push ecx
mov ecx, dword [esp + 0x6c]
call fcn.0041bd00
mov dword [eax], esi
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x20]
mov dword [ebp + 0x30], 0xffffffff
mov word [ebp + 0x74], 0
mov dword [ebp + 0x78], 0xffffffff
mov dword [ebp + 0x7c], 0xffffffff
mov word [ebp + 0x80], 1
mov dword [ebp + 0x84], 0xffffffff
mov dword [ebp + 0x158], 0xffffffff
mov dword [ebp + 0x22c], 0xffffffff
mov dword [ebp + 0x244], 0xffffffff
mov byte [ebp + 0x268], 0
mov byte [ebp + 0x26e], 0
mov byte [ebp + 0x271], 0
mov byte [ebp + 0x270], al
mov al, byte [edi + 0x490]
mov byte [ebp + 0x274], al
mov ecx, dword [esi + 0xdc]
mov eax, dword [edi]
cmp eax, dword [ecx + 0xa9db0]
jge 0x41878b
test eax, eax
js 0x41878b
mov ecx, dword [ecx + 0xa9da8]
je 0x41878d
mov ecx, dword [ecx]
sub eax, 1
jne 0x418782
jmp 0x41878d
xor ecx, ecx
mov cl, byte [ecx + 0xd08]
mov al, byte [ebp + 0x26b]
shl cl, 4
and al, 0xf
or cl, al
mov byte [ebp + 0x26b], cl
cmp dword [edi + 0x1c], 0x20
jne 0x4188e5
push dword [esp + 0x14]
mov edx, edi
mov ecx, ebp
push esi
call fcn.00419520
push dword [esp + 0x1c]
mov edx, edi
mov ecx, ebp
push esi
call fcn.00419b40
push dword [esp + 0x24]
mov edx, edi
mov ecx, ebp
push esi
call fcn.004196f0
push dword [esp + 0x2c]
mov edx, edi
mov ecx, ebp
push esi
call fcn.004197f0
push dword [esp + 0x34]
mov edx, edi
mov ecx, ebp
push esi
call fcn.004198f0
push dword [esp + 0x3c]
mov edx, edi
mov ecx, ebp
push esi
call fcn.00419a20
mov al, byte [edi + 0x3ee]
add esp, 0x30
mov byte [ebp + 0x81], al
test ebx, ebx
je 0x41881f
mov cl, byte [edi + 0x3e4]
jmp 0x418821
mov cl, 1
mov byte [ebp + 0x26], cl
mov edx, 0x29
cmp byte [ebp + 0x1e], 2
mov ecx, ebp
mov al, byte [edi + 0x3e8]
mov byte [ebp + 0x27], al
jle 0x41883e
xor al, al
jmp 0x418844
mov al, byte [edi + 0x3ed]
mov byte [edx + ecx], al
cmp byte [edi + 0x3e9], 0
sete al
mov byte [ebp + 0x260], al
cmp byte [edi + 0x3ea], 0
sete al
mov byte [ebp + 0x261], al
mov al, byte [edi + 0x3eb]
mov byte [ebp + 0x262], al
mov cl, byte [edi + 0x3ec]
mov al, byte [ebp + 0x263]
and al, 0xf0
shr cl, 1
not cl
and cl, 1
or al, cl
mov byte [ebp + 0x263], al
mov al, byte [edi + 0x3ec]
shl al, 4
not al
and al, 0x10
or al, cl
mov byte [ebp + 0x263], al
movzx ecx, byte [edi + 0x3ef]
mov al, byte [ebp + 0x26d]
xor cl, al
and cl, 0xf
xor cl, al
mov byte [ebp + 0x26d], cl
mov eax, dword [edi + 0x3f0]
mov dword [ebp + 0x278], eax
mov eax, dword [edi + 0x6a4]
mov dword [ebp + 0x27c], eax
mov ax, word [edi + 0x6a8]
mov word [ebp + 0x280], ax
cmp dword [edi + 0x1c], 0x4d
je 0x418aad
cmp byte [edi + 0x490], 0
jne 0x418aad
cmp dword [esp + 0x3c], 0
jne 0x418924
mov ebx, dword [esp + 0x14]
mov edx, ebp
push ebx
push dword [esp + 0x34]
mov ecx, esi
call fcn.00419310
push 1
push ebx
mov edx, ebp
mov ecx, esi
call fcn.00419210
add esp, 0x10
mov eax, dword [esi + 0xdc]
mov cl, byte [esp + 0x12]
mov eax, dword [eax + 0xa9cd8]
mov eax, dword [eax]
cmp byte [eax + 0x9c9d3], 0
je 0x418946
call fcn.00415070
jmp 0x41894b
call fcn.00415180
mov ebx, eax
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x6c]
test edx, edx
je 0x418997
mov esi, dword [edi + 8]
mov ecx, dword [esp + 0x20]
push esi
push dword [esp + 0x18]
call fcn.00418b80
add ebx, eax
add esp, 8
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x494]
test edx, edx
je 0x418993
push esi
push dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.00418b80
add esp, 8
add ebx, eax
jmp 0x418997
mov esi, dword [esp + 0x20]
movsx eax, word [ebp + 8]
imul ecx, eax, 0xbc
mov eax, dword [esp + 0x14]
add ecx, dword [esi + eax*4 + 0xf8]
movsx eax, byte [ecx + 0x72]
cmp eax, ebx
jge 0x4189b7
mov byte [ecx + 0x72], bl
cmp byte [edi + 0x470], 0
jbe 0x418aad
push 4
push 5
call dword [esp + 0x74]
xor ebx, ebx
mov dword [ebp + 0xc], eax
add esp, 8
xor esi, esi
cmp byte [edi + 0x470], bl
jbe 0x418a9f
add edi, 0x474
nop dword [eax + eax]
cmp esi, 4
jge 0x418a9f
mov ecx, dword [esp + 0x20]
mov eax, dword [edi]
mov ecx, dword [ecx + 0xdc]
cmp eax, dword [ecx + 0xa9dcc]
jge 0x418a29
test eax, eax
js 0x418a29
mov ecx, dword [ecx + 0xa9dc4]
je 0x418a2b
nop dword [eax]
mov ecx, dword [ecx]
sub eax, 1
jne 0x418a20
jmp 0x418a2b
xor ecx, ecx
mov eax, dword [esp + 0x20]
lea edx, [ecx + 8]
mov eax, dword [eax + 0xdc]
mov eax, dword [eax + 0xa9cd8]
mov eax, dword [eax]
mov cl, byte [eax + 8]
cmp cl, 1
je 0x418a7f
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x418a88
cmp cl, 1
jbe 0x418a7f
cmp byte [eax + edx + 0x6a4], 0
jne 0x418a7f
test eax, eax
jne 0x418a88
movzx ecx, cl
test ecx, ecx
je 0x418a7f
nop dword [eax + eax]
cmp byte [edx + eax + 0x6a4], 0
jne 0x418a88
inc eax
cmp eax, ecx
jl 0x418a70
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi]
mov dword [eax + ebx*4], ecx
inc ebx
mov eax, dword [esp + 0x54]
inc esi
add edi, 4
movzx eax, byte [eax + 0x470]
cmp esi, eax
jl 0x4189f0
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0x20]
mov dword [eax + ebx*4], 0xffffffff
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x70]
inc dword [edi]
cmp byte [esp + 0x34], 0xff
jne 0x418457
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x3c], 1
mov al, byte [esp + 0x1b]
inc al
mov byte [esp + 0x1b], al
cmp al, 8
jl 0x4183b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret