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

Disassembly:
push 0xffffffffffffffff
push 0x422446
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, dword [ebp + 0x18]
call fcn.00414800
mov esi, dword [esp + 0x100]
mov ebx, eax
mov edi, edx
cmp ebx, 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jne 0x4162d7
test edi, edi
jne 0x4162d7
lea eax, [esi + 0x130]
mov ecx, ebp
push eax
call fcn.00414d40
mov ecx, dword [ebp + 0x18]
call fcn.00414800
mov ebx, eax
mov edi, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x34]
call fcn.004103c0
mov dword [esp + 0x34], 0x42416c
cmp ebx, 3
mov dword [esp + 0xf8], 0
jne 0x4163a0
test edi, edi
jne 0x4163a0
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x104]
push ecx
mov ecx, dword [esi + 0x144]
lea eax, [esp + 0x38]
lea ebx, [esi + 0x150]
push edx
mov edx, dword [esi + 0x140]
push eax
push ebx
push ecx
push edx
mov ecx, ebp
call fcn.00415c90
mov edi, eax
test edi, edi
je 0x416372
mov dword [esp + 0x34], 0x42416c
lea ecx, [esp + 0x34]
mov dword [esp + 0xf8], 1
call fcn.0041dd00
lea ecx, [esp + 0x34]
mov dword [esp + 0xf8], 0xffffffff
call fcn.0041dcc0
mov eax, edi
jmp 0x416c98
mov eax, dword [esi + 0x140]
mov edx, dword [ebx]
mov ecx, dword [esi + 0x144]
add edx, eax
mov dword [ebx], edx
mov eax, dword [ebx + 4]
adc eax, ecx
mov dword [ebx + 4], eax
mov ecx, dword [ebp + 0x18]
call fcn.00414800
mov ebx, eax
mov edi, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
push 8
lea ecx, [esp + 0x4c]
call fcn.0040e560
mov dword [esp + 0x48], 0x423fac
push 1
lea ecx, [esp + 0xa8]
call fcn.0040e560
mov dword [esp + 0xa4], 0x42407c
push 4
lea ecx, [esp + 0x60]
call fcn.0040e560
mov dword [esp + 0x5c], 0x424034
cmp ebx, 4
mov byte [esp + 0xf8], 4
jne 0x4164bc
test edi, edi
jne 0x4164bc
lea edx, [esp + 0x5c]
lea eax, [esp + 0xa4]
push edx
lea ecx, [esp + 0x4c]
push eax
lea edx, [esi + 0x50]
push ecx
lea eax, [esi + 0x3c]
push edx
lea ecx, [esi + 0x28]
push eax
lea edx, [esi + 0x14]
push ecx
lea edi, [esi + 0x148]
push edx
push esi
lea eax, [esp + 0x54]
push edi
push eax
mov ecx, ebp
call fcn.00415a30
mov ecx, dword [esi + 0x140]
mov ebx, dword [edi]
mov edx, dword [esi + 0x144]
add ebx, ecx
mov dword [edi], ebx
mov eax, dword [edi + 4]
adc eax, edx
mov dword [edi + 4], eax
mov ecx, dword [ebp + 0x18]
call fcn.00414800
mov ebx, eax
mov dword [esp + 0x18], edx
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.0041dd00
mov eax, dword [esp + 0x18]
mov ecx, ebx
or ecx, eax
jne 0x4165da
lea ecx, [esp + 0x5c]
mov byte [esp + 0xf8], 3
call fcn.0041dcc0
lea ecx, [esp + 0xa4]
mov byte [esp + 0xf8], 2
call fcn.0041dcc0
lea ecx, [esp + 0x48]
mov byte [esp + 0xf8], 0
call fcn.0041dcc0
mov dword [esp + 0x34], 0x42416c
mov dword [esp + 0xf8], 5
jmp 0x416c79
mov eax, dword [esi + 0x44]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x416456
lea edi, [esi + 0x50]
mov ecx, edi
call fcn.0041dd40
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
xor ebx, ebx
mov dword [ecx + eax*4], 1
mov edx, dword [edi + 8]
mov eax, dword [esp + 0x1c]
inc edx
mov dword [edi + 8], edx
mov edx, dword [esi + 0x48]
mov edi, dword [edx + eax*4]
mov eax, dword [edi + 0x44]
cmp eax, ebx
jne 0x416502
mov dword [esp + 0x2c], ebx
jmp 0x41652a
lea ebx, [eax - 1]
test ebx, ebx
jl 0x4165c3
push ebx
mov ecx, edi
call fcn.004111f0
test eax, eax
jl 0x41651c
dec ebx
jmp 0x416505
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx + ebx*8]
mov dword [esp + 0x2c], edx
mov ebx, dword [ecx + ebx*8 + 4]
lea ecx, [esp + 0x48]
call fcn.0041dd40
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*8], edx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [ecx + eax*8 + 4], ebx
mov eax, dword [esp + 0x50]
inc eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0x50], eax
mov bl, byte [edi + 0x54]
call fcn.0041dd40
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0x5c]
mov byte [edx + eax], bl
mov ebx, dword [esp + 0xac]
inc ebx
mov dword [esp + 0xac], ebx
mov edi, dword [edi + 0x50]
call fcn.0041dd40
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x1c]
mov dword [edx + ecx*4], edi
mov edi, dword [esp + 0x64]
mov ecx, dword [esi + 0x44]
inc edi
inc eax
mov dword [esp + 0x64], edi
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4164cb
mov ebx, dword [esp + 0x14]
jmp 0x416456
lea eax, [esp + 0x20]
push 0x424e10
push eax
mov dword [esp + 0x28], 1
call sub.MSVCRT.dll__CxxThrowException
cmp ebx, 5
jne 0x4165e7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4165ec
call fcn.00414700
mov ecx, dword [ebp + 0x18]
call fcn.004148d0
mov ebx, eax
mov ecx, edi
push ebx
mov dword [esp + 0x20], ebx
call fcn.0041dd80
test ebx, ebx
jbe 0x4166d9
mov dword [esp + 0x20], ebx
xor eax, eax
push 3
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
call fcn.00410450
mov byte [esp + 0x8c], 1
mov byte [esp + 0x8d], 0
mov byte [esp + 0x8e], 0
mov byte [esp + 0x8f], 0
push 0x20
mov byte [esp + 0xfc], 6
call fcn.0041df00
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xf8], 7
je 0x416687
lea edx, [esp + 0x70]
mov ecx, eax
push edx
call fcn.00417960
mov dword [esp + 0x14], eax
jmp 0x41668f
mov dword [esp + 0x14], 0
mov ecx, edi
mov byte [esp + 0xf8], 6
call fcn.0041dd40
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x14]
mov byte [esp + 0xf8], 4
mov dword [ecx + eax*4], edx
mov eax, dword [edi + 8]
inc eax
mov dword [edi + 8], eax
mov eax, dword [esp + 0x80]
push eax
call fcn.004020d0
mov eax, dword [esp + 0x24]
add esp, 4
dec eax
mov dword [esp + 0x20], eax
jne 0x41660e
lea edi, [esi + 0x158]
mov ecx, edi
call fcn.0041dd40
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [edx + ecx*8], 9
mov dword [edx + ecx*8 + 4], 0
mov ecx, dword [edi + 8]
inc ecx
mov dword [edi + 8], ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x41672c
mov ecx, edi
call fcn.0041dd40
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [ecx + eax*8], 6
mov dword [ecx + eax*8 + 4], 0
mov eax, dword [edi + 8]
inc eax
mov dword [edi + 8], eax
test ebx, ebx
jbe 0x41675b
mov eax, dword [esp + 0x64]
test eax, eax
je 0x41675b
mov ecx, edi
call fcn.0041dd40
mov edx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov dword [eax + edx*8], 0xa
mov dword [eax + edx*8 + 4], 0
mov eax, dword [edi + 8]
inc eax
mov dword [edi + 8], eax
xor edi, edi
mov dword [esp + 0xa0], 1
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x90], 0x42407c
lea ecx, [esp + 0x90]
push ebx
push ecx
mov byte [esp + 0x100], 8
call fcn.00414560
mov ecx, 1
mov eax, 0x42407c
add esp, 8
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xb8], eax
mov byte [esp + 0xf8], 0xa
mov dword [esp + 0x14], edi
jmp 0x416803
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x18]
call fcn.00414800
mov edi, edx
mov dword [esp + 0x2c], eax
or eax, edi
mov dword [esp + 0x30], edi
je 0x416af4
mov ecx, dword [ebp + 0x18]
call fcn.00414800
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x28], edx
test edi, edi
mov edx, dword [ecx + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
ja case.0x41685f.22
jb 0x41684f
cmp dword [esp + 0x2c], 0x40000000
ja case.0x41685f.22
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff2
cmp edx, 0xb
ja case.0x41685f.22
jmp dword [edx*4 + 0x416cb4]
mov byte [esp + 0xec], 0
lea eax, [esp + 0x34]
lea ecx, [esp + 0xe8]
push eax
push ebp
mov byte [esp + 0x100], 0xb
call fcn.004146b0
mov eax, dword [esi + 0x6c]
xor edi, edi
test eax, eax
jle 0x4168ab
mov ecx, dword [esi + 0x70]
mov eax, dword [ecx + edi*4]
mov ecx, dword [ebp + 0x18]
add eax, 0x10
push eax
call fcn.00414950
mov eax, dword [esi + 0x6c]
inc edi
cmp edi, eax
jl 0x416891
lea ecx, [esp + 0xe8]
mov byte [esp + 0xf8], 0xa
call fcn.004145c0
jmp 0x416a20
xor edi, edi
mov dword [esp + 0x80], 1
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x70], 0x42407c
mov eax, dword [esi + 0x6c]
lea edx, [esp + 0x70]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x100], 0xc
call fcn.00415b50
mov byte [esp + 0xe4], 0
lea eax, [esp + 0x34]
lea ecx, [esp + 0xe0]
push eax
push ebp
mov byte [esp + 0x100], 0xd
call fcn.004146b0
test ebx, ebx
jbe 0x41694b
mov ecx, dword [esi + 0x70]
mov edx, dword [esp + 0x7c]
mov ebx, dword [ecx + edi*4]
mov al, byte [edx + edi]
test al, al
mov byte [ebx + 0x1f], al
je 0x416942
mov ecx, dword [ebp + 0x18]
call fcn.004148f0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jb 0x416923
lea ecx, [esp + 0xe0]
mov byte [esp + 0xf8], 0xc
call fcn.004145c0
lea ecx, [esp + 0x70]
mov byte [esp + 0xf8], 0xa
call fcn.0041dcc0
jmp 0x416a20
lea eax, [esp + 0x90]
mov ecx, ebp
push eax
push ebx
call fcn.00415ae0
mov ecx, dword [esp + 0x98]
xor eax, eax
test ecx, ecx
jbe 0x4169ce
mov edx, dword [esp + 0x9c]
mov edi, dword [esp + 0x14]
cmp byte [edx + eax], 0
je 0x4169a4
inc edi
inc eax
cmp eax, ecx
jb 0x41699d
mov dword [esp + 0x14], edi
lea ecx, [esp + 0xcc]
push edi
push ecx
call fcn.00414560
lea edx, [esp + 0xc0]
push edi
push edx
call fcn.00414560
add esp, 0x10
jmp 0x416a20
mov edi, dword [esp + 0x14]
jmp 0x4169ad
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xcc]
push eax
push ecx
mov ecx, ebp
call fcn.00415ae0
jmp 0x416a20
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xb8]
push edx
push eax
mov ecx, ebp
call fcn.00415ae0
jmp 0x416a20
lea ecx, [esi + 0xf0]
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
jmp 0x416a19
lea eax, [esi + 0x78]
push ebx
lea ecx, [esp + 0x38]
push eax
push ecx
mov ecx, ebp
call fcn.00415bc0
lea edi, [esi + 0x158]
mov ecx, edi
call fcn.0041dd40
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*8], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + eax*8 + 4], edx
mov eax, dword [edi + 8]
inc eax
mov dword [edi + 8], eax
jmp 0x416ab3
lea edx, [esi + 0xa0]
push ebx
lea eax, [esp + 0x38]
push edx
push eax
jmp 0x416a19
lea ecx, [esi + 0xc8]
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
jmp 0x416a19
mov eax, dword [esp + 0x28]
xor ebx, ebx
xor edi, edi
test eax, eax
jb 0x416ab3
ja 0x416a7f
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x416ab3
mov ecx, dword [ebp + 0x18]
call fcn.00414720
test al, al
je 0x416a90
call fcn.00414700
mov eax, dword [esp + 0x28]
add ebx, 1
adc edi, 0
cmp edi, eax
jb 0x416a7f
ja 0x416ab3
cmp ebx, dword [esp + 0x24]
jb 0x416a7f
jmp 0x416ab3
mov edx, dword [esp + 0x28]
push edx
push eax
call fcn.00414790
mov al, byte [esi + 0x130]
test al, al
ja 0x416aca
cmp byte [esi + 0x131], 2
jbe 0x4167ff
mov eax, dword [ebp + 0x18]
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov eax, dword [eax + 8]
sub eax, edi
cmp eax, edx
jne 0x416aea
cmp ecx, dword [esp + 0x28]
je 0x4167ff
call fcn.00414700
jmp 0x4167ff
mov ecx, dword [esp + 0x14]
xor eax, eax
xor ebp, ebp
xor edx, edx
cmp ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
jbe 0x416b21
mov edi, dword [esp + 0xc4]
cmp byte [edi + eax], 0
je 0x416b18
inc edx
inc eax
cmp eax, ecx
jb 0x416b11
mov dword [esp + 0x1c], edx
xor edi, edi
test ebx, ebx
mov dword [esp + 0x14], edi
jbe 0x416bf4
mov ecx, dword [esi + 0x70]
mov edx, dword [esp + 0x9c]
mov eax, dword [ecx + edi*4]
mov cl, byte [edx + edi]
test cl, cl
sete cl
test cl, cl
mov byte [eax + 0x1c], cl
je 0x416b81
mov byte [eax + 0x1d], 0
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x13], 0
lea edx, [ecx + ebp*8]
inc ebp
mov ecx, dword [edx]
mov dword [eax], ecx
mov edx, dword [edx + 4]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + ebp*4 - 4]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0xb0]
mov dl, byte [ecx + ebp - 1]
mov byte [eax + 0x1e], dl
jmp 0x416bba
mov edx, dword [esp + 0xd8]
mov ecx, dword [esp + 0x20]
cmp byte [edx + ecx], 0
sete dl
mov byte [eax + 0x1d], dl
mov edx, dword [esp + 0xc4]
mov dl, byte [edx + ecx]
inc ecx
mov dword [eax], 0
mov byte [esp + 0x13], dl
mov dword [esp + 0x20], ecx
mov dword [eax + 4], 0
mov byte [eax + 0x1e], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x416be7
lea edi, [esi + 0x118]
mov ecx, edi
call fcn.0041dd40
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov dl, byte [esp + 0x13]
mov byte [eax + ecx], dl
mov eax, dword [edi + 8]
inc eax
mov dword [edi + 8], eax
mov edi, dword [esp + 0x14]
inc edi
cmp edi, ebx
mov dword [esp + 0x14], edi
jb 0x416b2f
lea ecx, [esp + 0xb8]
mov byte [esp + 0xf8], 9
call fcn.0041dcc0
lea ecx, [esp + 0xcc]
mov byte [esp + 0xf8], 8
call fcn.0041dcc0
lea ecx, [esp + 0x90]
mov byte [esp + 0xf8], 4
call fcn.0041dcc0
lea ecx, [esp + 0x5c]
mov byte [esp + 0xf8], 3
call fcn.0041dcc0
lea ecx, [esp + 0xa4]
mov byte [esp + 0xf8], 2
call fcn.0041dcc0
lea ecx, [esp + 0x48]
mov byte [esp + 0xf8], 0
call fcn.0041dcc0
mov dword [esp + 0x34], 0x42416c
mov dword [esp + 0xf8], 0xe
lea ecx, [esp + 0x34]
call fcn.0041dd00
lea ecx, [esp + 0x34]
mov dword [esp + 0xf8], 0xffffffff
call fcn.0041dcc0
xor eax, eax
mov ecx, dword [esp + 0xf0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xec
ret 0xc