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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x20]
cmp eax, dword [ecx + 8]
jbe 0x407a72
sub esp, 0xa0
mov ebx, dword [esp + 0xa4]
movzx ebp, word [ebx + 0x34]
mov eax, ebp
imul eax, dword [esp + 0xac]
mov ebx, dword [esp + 0xa8]
mov ebx, dword [ebx + 0x10]
add ebx, eax
mov dword [esp + 0x88], ebx
mov ebp, dword [esp + 0xa8]
movzx esi, byte [ebp + 5]
mov ecx, esi
dec ecx
mov ebx, 1
cmp cl, 0x20
jae 0x407a6b
shl ebx, cl
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0xa4]
mov ebp, dword [ebx + 0x20]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x90], ebx
mov ebx, dword [esp + 0x88]
movzx ebp, byte [ebx]
xchg ebp, eax
cmp al, 0
xchg ebp, eax
jbe 0x407a64
xchg ebp, eax
cmp al, 4
xchg ebp, eax
jae 0x407a64
mov eax, 1
cmp al, 0
jne 0x4070ff
mov ebx, dword [esp + 0xa4]
movzx ebp, word [ebx + 0x34]
mov eax, ebp
imul eax, dword [esp + 0xac]
mov ebx, dword [esp + 0xa8]
mov esi, dword [ebx + 0xc]
add esi, eax
mov eax, dword [esp + 0xac]
add eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0xa4]
movzx ebp, word [ebx + 0x34]
imul eax, ebp
mov ebx, dword [esp + 0xa8]
mov edx, dword [ebx + 0xc]
add edx, eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x4c], esi
mov eax, 8
add esi, eax
mov dword [esp + 0x40], edx
mov eax, 8
add edx, eax
mov ebx, dword [esp + 0xa4]
movzx ebp, byte [ebx + 0x30]
mov eax, ebp
shl eax, 3
mov dword [esp + 0x48], esi
mov ebx, esi
add ebx, eax
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0xa4]
movzx ebp, byte [ebx + 0x30]
mov eax, ebp
shl eax, 3
mov dword [esp + 0x3c], edx
mov ebx, edx
add ebx, eax
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x88]
xor ebp, ebp
cmp ebx, ebp
je 0x4070a6
mov ebx, dword [esp + 0x88]
mov eax, 8
add ebx, eax
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0xa4]
movzx ebp, byte [ebx + 0x30]
mov eax, ebp
shl eax, 3
mov ebx, dword [esp + 0x70]
add ebx, eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], 0
mov ebx, dword [esp + 0x30]
cmp ebx, 8
jge 0x407073
mov esi, dword [esp + 0x88]
cmp esi, 0
je 0x407a5d
mov ebp, dword [esp + 0x30]
cmp ebp, 8
jae 0x407a56
add esi, ebp
movzx ebx, byte [esi]
cmp bl, 0
jne 0x407176
mov ecx, 1
mov esi, dword [esp + 0x88]
cmp esi, 0
je 0x40716f
mov ebp, dword [esp + 0x30]
cmp ebp, 8
jae 0x407168
add esi, ebp
mov byte [esi], cl
mov ebx, dword [esp + 0xa4]
movzx ebp, byte [ebx + 0x30]
mov edx, dword [esp + 0x70]
add edx, ebp
mov ebx, dword [esp + 0xa4]
movzx ebp, byte [ebx + 0x32]
mov eax, dword [esp + 0x50]
add eax, ebp
mov ecx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x50], eax
mov ebx, dword [esp + 0x30]
cmp ebx, 8
jl 0x406fe2
mov ebx, dword [esp + 0x88]
mov eax, dword [esp + 0xa4]
movzx ebp, word [eax + 0x34]
mov eax, ebp
sub eax, 4
add ebx, eax
mov ebp, dword [ebx]
mov dword [esp + 0x88], ebp
mov ebx, dword [esp + 0x88]
xor ebp, ebp
cmp ebx, ebp
jne 0x406fa1
mov ebx, dword [esp + 0xa8]
movzx ebp, byte [ebx + 4]
mov ebx, ebp
and ebx, 2
cmp bl, 0
jne 0x4070ff
mov ebx, dword [esp + 0xa4]
movzx ebp, word [ebx + 0x34]
mov eax, ebp
imul eax, dword [esp + 0xac]
mov ebx, dword [esp + 0xa8]
mov ebx, dword [ebx + 0x10]
add ebx, eax
mov eax, 8
add ebx, eax
mov dword [esp], ebx
mov ebx, dword [esp + 0xa4]
movzx ebp, word [ebx + 0x34]
mov ebx, ebp
sub ebx, 8
mov dword [esp + 4], ebx
call fcn.0044acc0
mov ebx, dword [esp + 0xa8]
mov ebp, dword [ebx + 0x14]
mov ebx, dword [esp + 0xac]
cmp ebp, ebx
jne 0x407161
mov eax, dword [esp + 0xac]
inc eax
mov ebx, dword [esp + 0xa8]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0xac]
inc eax
mov ebx, dword [esp + 0x2c]
cmp eax, ebx
jne 0x407161
xor eax, eax
mov ebx, dword [esp + 0xa8]
mov dword [ebx + 0x10], eax
mov ebx, dword [esp + 0xa8]
mov ebp, dword [ebx + 0x18]
xor ebx, ebx
cmp ebp, ebx
je 0x407161
xor eax, eax
mov ebx, dword [esp + 0xa8]
mov ebp, dword [ebx + 0x18]
mov dword [ebp + 4], eax
add esp, 0xa0
ret
call fcn.00423330
ud2
mov dword [esi], eax
jmp 0x407022
mov byte [esp + 0x23], bl
cmp bl, 4
jae 0x407194
mov ebx, 0x484d95
mov dword [esp], ebx
mov dword [esp + 4], 0xd
call fcn.00424fa0
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0xa4]
movzx ebx, byte [ebx + 0x31]
cmp bl, 0
je 0x4071aa
mov eax, dword [eax]
mov dword [esp + 0x6c], eax
mov dword [esp], eax
mov ebx, dword [esp + 0xa8]
mov ebp, dword [ebx + 8]
mov dword [esp + 4], ebp
mov ebx, dword [esp + 0x90]
mov edx, dword [ebx]
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 8]
mov dword [esp + 0x34], eax
mov ebx, dword [esp + 0xa8]
movzx ebp, byte [ebx + 4]
mov ebx, ebp
and ebx, 1
cmp bl, 0
je 0x407260
mov ebx, dword [esp + 0xa4]
movzx ebx, byte [ebx + 0x36]
cmp bl, 0
jne 0x407a51
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x90]
mov edx, dword [ebx + 4]
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 0x34]
movzx ebx, byte [esp + 8]
cmp bl, 0
jne 0x407a51
movzx ebx, byte [esp + 0x23]
and ebx, 1
cmp bl, 0
je 0x407a41
or eax, dword [esp + 0x2c]
mov ebx, eax
shr ebx, 0x18
mov byte [esp + 0x23], bl
movzx ebx, byte [esp + 0x23]
cmp bl, 4
jae 0x407260
movzx ebx, byte [esp + 0x23]
add ebx, 4
mov byte [esp + 0x23], bl
mov ebx, eax
and ebx, dword [esp + 0x2c]
cmp ebx, 0
jne 0x407652
mov ecx, 2
mov esi, dword [esp + 0x88]
cmp esi, 0
je 0x40764b
mov ebp, dword [esp + 0x30]
cmp ebp, 8
jae 0x407644
add esi, ebp
mov byte [esi], cl
mov ebx, dword [esp + 0x28]
cmp ebx, 8
jne 0x407469
mov ebx, dword [esp + 0xa4]
mov ebp, dword [ebx + 0x28]
mov dword [esp], ebp
call fcn.0040b910
mov ebx, dword [esp + 4]
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x54]
mov ebp, dword [ebx + 0x28]
movzx ebx, byte [ebp + 0xf]
and ebx, 0x80
cmp bl, 0
je 0x4073fe
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x7c], ecx
mov ebp, dword [ecx + 0x18]
xor ebx, ebx
cmp ebp, ebx
jne 0x40733d
mov dword [esp], 0x472980
call fcn.0040b910
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 4]
cmp ecx, 0
je 0x40763d
cmp byte [0x4d1078], 0
jne 0x407625
mov dword [ecx + 0x18], eax
mov ebp, dword [ecx + 0x18]
mov eax, dword [ebp]
xor ebx, ebx
cmp eax, ebx
jne 0x407379
mov dword [esp], 0x470360
call fcn.0040b910
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [ebx + 0x18]
cmp ebp, 0
je 0x40761d
cmp byte [0x4d1078], 0
jne 0x40760c
mov dword [ebp], eax
mov ebx, dword [esp + 0x74]
mov ebp, dword [ebx + 0x18]
mov ebx, dword [ebp]
mov edx, dword [ebx]
mov ebp, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, ebp
inc ebp
cmp ebp, ecx
ja 0x4075df
mov ebx, eax
inc ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x94], edx
mov ebx, edx
mov ebp, eax
imul ebp, ebp, 4
add ebx, ebp
mov ebp, dword [esp + 0x5c]
cmp byte [0x4d1078], 0
jne 0x4075ce
mov dword [ebx], ebp
mov ebx, dword [esp + 0x74]
mov ebp, dword [ebx + 0x18]
mov ebx, dword [ebp]
mov ebp, dword [esp + 0x98]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x9c]
mov dword [ebx + 8], ebp
mov ebp, dword [esp + 0x94]
cmp byte [0x4d1078], 0
jne 0x4075bd
mov dword [ebx], ebp
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0x54]
movzx ebp, word [ebx + 0x34]
mov edx, ebp
sub edx, 4
add ecx, edx
mov eax, dword [esp + 0x5c]
cmp ecx, 0
je 0x4075b6
cmp byte [0x4d1078], 0
jne 0x4075a5
mov dword [ecx], eax
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], 0
mov ebx, dword [esp + 0x4c]
mov eax, 8
add ebx, eax
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0xa4]
movzx ebp, byte [ebx + 0x30]
mov eax, ebp
shl eax, 3
mov ebx, dword [esp + 0x48]
add ebx, eax
mov dword [esp + 0x44], ebx
movzx ebx, byte [esp + 0x23]
mov esi, dword [esp + 0x4c]
cmp esi, 0
je 0x40759e
mov ebp, dword [esp + 0x28]
cmp ebp, 8
jae 0x407597
add esi, ebp
mov byte [esi], bl
mov ebx, dword [esp + 0xa4]
movzx ebx, byte [ebx + 0x31]
cmp bl, 0
je 0x407570
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x6c]
cmp eax, 0
je 0x407569
cmp byte [0x4d1078], 0
jne 0x407558
mov dword [eax], ecx
mov ebx, dword [esp + 0xa4]
movzx ebx, byte [ebx + 0x33]
cmp bl, 0
je 0x407534
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x50]
mov ebp, dword [ebx]
cmp eax, 0
je 0x407530
cmp byte [0x4d1078], 0
jne 0x407522
mov dword [eax], ebp
mov ebx, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0xa4]
movzx ebp, byte [ebx + 0x30]
mov ebx, dword [esp + 0x48]
add ebx, ebp
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0xa4]
movzx ebp, byte [ebx + 0x32]
mov ebx, dword [esp + 0x44]
add ebx, ebp
mov dword [esp + 0x44], ebx
jmp 0x407033
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.0040c2a0
jmp 0x4074ea
mov dword [eax], eax
jmp 0x4074df
mov ebx, dword [esp + 0xa4]
mov ebp, dword [ebx + 0x24]
mov dword [esp], ebp
mov ebx, dword [esp + 0x44]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 8], ebx
call fcn.0040c3a0
jmp 0x4074ea
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040c2a0
jmp 0x4074c0
mov dword [eax], eax
jmp 0x4074b1
mov ebx, dword [esp + 0xa4]
mov ebp, dword [ebx + 0x20]
mov dword [esp], ebp
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
call fcn.0040c3a0
jmp 0x4074c0
call fcn.00423330
ud2
mov dword [esi], eax
jmp 0x40747b
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040c2a0
jmp 0x407430
mov dword [ecx], eax
jmp 0x407421
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0040c2a0
jmp 0x4073fe
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0040c2a0
jmp 0x4073ca
mov dword [esp], 0x475f80
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
call fcn.00434750
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x407396
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0040c2a0
jmp 0x407379
mov dword [ebp], eax
jmp 0x407369
lea esi, [ecx + 0x18]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040c2a0
mov ecx, dword [esp + 0x7c]
jmp 0x40733d
mov dword [ecx], eax
jmp 0x40732d
call fcn.00423330
ud2
mov dword [esi], eax
jmp 0x407284
mov ecx, 3
mov esi, dword [esp + 0x88]
cmp esi, 0
je 0x407a3a
mov ebp, dword [esp + 0x30]
cmp ebp, 8
jae 0x407a33
add esi, ebp
mov byte [esi], cl
mov ebx, dword [esp + 0x24]
cmp ebx, 8
jne 0x407855
mov ebx, dword [esp + 0xa4]
mov ebp, dword [ebx + 0x28]
mov dword [esp], ebp
call fcn.0040b910
mov ebx, dword [esp + 4]
mov dword [esp + 0x64], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x58]
mov ebp, dword [ebx + 0x28]
movzx ebx, byte [ebp + 0xf]
and ebx, 0x80
cmp bl, 0
je 0x4077ea
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x80], ecx
mov ebp, dword [ecx + 0x18]
xor ebx, ebx
cmp ebp, ebx
jne 0x407726
mov dword [esp], 0x472980
call fcn.0040b910
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 4]
cmp ecx, 0
je 0x407a2c
cmp byte [0x4d1078], 0
jne 0x407a11
mov dword [ecx + 0x18], eax
mov ebp, dword [ecx + 0x18]
mov eax, dword [ebp]
xor ebx, ebx
cmp eax, ebx
jne 0x407765
mov dword [esp], 0x470360
call fcn.0040b910
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x80]
mov ebp, dword [ebx + 0x18]
cmp ebp, 0
je 0x407a09
cmp byte [0x4d1078], 0
jne 0x4079f8
mov dword [ebp], eax
mov ebx, dword [esp + 0x78]
mov ebp, dword [ebx + 0x18]
mov ebx, dword [ebp]
mov edx, dword [ebx]
mov ebp, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, ebp
inc ebp
cmp ebp, ecx
ja 0x4079cb
mov ebx, eax
inc ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x94], edx
mov ebx, edx
mov ebp, eax
imul ebp, ebp, 4
add ebx, ebp
mov ebp, dword [esp + 0x60]
cmp byte [0x4d1078], 0
jne 0x4079ba
mov dword [ebx], ebp
mov ebx, dword [esp + 0x78]
mov ebp, dword [ebx + 0x18]
mov ebx, dword [ebp]
mov ebp, dword [esp + 0x98]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x9c]
mov dword [ebx + 8], ebp
mov ebp, dword [esp + 0x94]
cmp byte [0x4d1078], 0
jne 0x4079a9
mov dword [ebx], ebp
mov ecx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x58]
movzx ebp, word [ebx + 0x34]
mov edx, ebp
sub edx, 4
add ecx, edx
mov eax, dword [esp + 0x60]
cmp ecx, 0
je 0x4079a2
cmp byte [0x4d1078], 0
jne 0x407991
mov dword [ecx], eax
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], 0
mov ebx, dword [esp + 0x40]
mov eax, 8
add ebx, eax
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0xa4]
movzx ebp, byte [ebx + 0x30]
mov eax, ebp
shl eax, 3
mov ebx, dword [esp + 0x3c]
add ebx, eax
mov dword [esp + 0x38], ebx
movzx ebx, byte [esp + 0x23]
mov esi, dword [esp + 0x40]
cmp esi, 0
je 0x40798a
mov ebp, dword [esp + 0x24]
cmp ebp, 8
jae 0x407983
add esi, ebp
mov byte [esi], bl
mov ebx, dword [esp + 0xa4]
movzx ebx, byte [ebx + 0x31]
cmp bl, 0
je 0x40795c
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x6c]
cmp eax, 0
je 0x407955
cmp byte [0x4d1078], 0
jne 0x407944
mov dword [eax], ecx
mov ebx, dword [esp + 0xa4]
movzx ebx, byte [ebx + 0x33]
cmp bl, 0
je 0x407920
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x50]
mov ebp, dword [ebx]
cmp eax, 0
je 0x40791c
cmp byte [0x4d1078], 0
jne 0x40790e
mov dword [eax], ebp
mov ebx, dword [esp + 0x24]
inc ebx
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0xa4]
movzx ebp, byte [ebx + 0x30]
mov ebx, dword [esp + 0x3c]
add ebx, ebp
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0xa4]
movzx ebp, byte [ebx + 0x32]
mov ebx, dword [esp + 0x38]
add ebx, ebp
mov dword [esp + 0x38], ebx
jmp 0x407033
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.0040c2a0
jmp 0x4078d6
mov dword [eax], eax
jmp 0x4078cb
mov ebx, dword [esp + 0xa4]
mov ebp, dword [ebx + 0x24]
mov dword [esp], ebp
mov ebx, dword [esp + 0x38]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 8], ebx
call fcn.0040c3a0
jmp 0x4078d6
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040c2a0
jmp 0x4078ac
mov dword [eax], eax
jmp 0x40789d
mov ebx, dword [esp + 0xa4]
mov ebp, dword [ebx + 0x20]
mov dword [esp], ebp
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
call fcn.0040c3a0
jmp 0x4078ac
call fcn.00423330
ud2
mov dword [esi], eax
jmp 0x407867
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040c2a0
jmp 0x40781c
mov dword [ecx], eax
jmp 0x40780d
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0040c2a0
jmp 0x4077ea
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0040c2a0
jmp 0x4077b6
mov dword [esp], 0x475f80
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
call fcn.00434750
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
jmp 0x407782
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0040c2a0
jmp 0x407765
mov dword [ebp], eax
jmp 0x407755
lea esi, [ecx + 0x18]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040c2a0
mov ecx, dword [esp + 0x80]
jmp 0x407726
mov dword [ecx], eax
jmp 0x407716
call fcn.00423330
ud2
mov dword [esi], eax
jmp 0x407667
mov ecx, eax
mov eax, dword [esp + 0x2c]
xor eax, 0xffffffff
and eax, ecx
jmp 0x407241
jmp 0x407260
call fcn.00423330
ud2
mov dword [esi], eax
jmp 0x406ff2
xor eax, eax
jmp 0x406ee3
xor ebx, ebx
jmp 0x406ea4
call fcn.00448770
jmp fcn.00406e40