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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
mov edi, dword [ebp + 8]
mov dword [esp + 0x44], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x40], eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov eax, dword [ebp + 0x20]
mov ebx, 6
test eax, eax
js 0x40631f
mov ebx, eax
mov dword [esp], edx
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], esi
or eax, esi
je 0x4063e0
mov esi, ebx
and esi, 0x400
mov ax, 8
test ebx, 0x10000
jne 0x406352
movzx eax, ax
or eax, 0x800
mov dword [esp + 0x84], eax
and ebx, 0xf
sete ah
test esi, esi
setne al
mov ecx, dword [edi + 0x48]
mov dword [esp + 8], ecx
test ecx, ecx
je 0x4063cd
cmp dword [edi + 0x14], 2
jne 0x4063cd
cmp dword [ebp + 0x14], 0
sete cl
cmp dword [ebp + 0x10], 0
setne dl
cmp dword [ebp + 0xc], 0
je 0x4063cd
or dl, cl
je 0x4063cd
cmp word [ebp + 0x1c], 0
setne cl
cmp dword [ebp + 0x18], 0
sete dl
test dl, cl
jne 0x4063cd
cmp ebx, 0xb
jae 0x4063cd
mov edx, dword [esp + 8]
cmp dword [edx + 0x34], 0
mov ecx, dword [edi + 0x10]
je 0x40640b
xor edi, edi
mov dword [esp + 0x2c], 0
cmp ecx, 0xffffffff
jne 0x406431
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x4063d6
mov dword [edi + 0x1c], 0x18
xor edi, edi
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp + 0x14], 0
setne al
mov esi, ebx
and esi, 0x400
sete cl
and cl, al
movzx eax, cl
shl eax, 3
test ebx, 0x10000
je 0x40634a
jmp 0x406352
cmp dword [esp + 0x14], 0
jne 0x406422
mov edi, ecx
mov cl, 1
mov dword [esp + 0x2c], ecx
cmp edi, 0xffff
jne 0x406431
mov dword [edx + 0x34], 1
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0xc]
or ecx, dword [esp + 0x14]
je 0x40644b
test esi, esi
jne 0x40644b
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
jmp 0x4063d4
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0x2f
mov edi, dword [ebp + 8]
je 0x4064d2
test esi, esi
je 0x40646b
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x88], eax
mov byte [esp + 0x20], 1
jmp 0x4064c0
or ah, al
mov byte [esp + 0xc], ah
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push 0
call fcn.00404090
add esp, 0xc
mov dword [esp + 0x88], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 0
mov eax, 0
cmp edi, 4
setb cl
jb 0x4064ac
mov eax, ebx
or cl, byte [esp + 0xc]
mov byte [esp + 0x20], cl
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0xc], ecx
mov ebx, eax
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.004098f0
add esp, 4
cmp eax, 0x10000
jb 0x4064de
mov dword [edi + 0x1c], 0x19
jmp 0x4063d4
movzx ecx, word [ebp + 0x1c]
mov dword [esp + 0x8c], ecx
mov ecx, edi
xor edi, edi
mov dword [esp + 0x1c], eax
call fcn.00406e60
mov dword [esp + 0x28], eax
mov eax, dword [esp + 8]
mov edx, dword [eax + 4]
xor ecx, ecx
mov eax, dword [esp + 0x1c]
add eax, dword [esp + 0x8c]
setb cl
mov dword [esp + 0x24], edx
add eax, edx
adc ecx, 0
mov edx, eax
mov dword [esp + 0x10], eax
add edx, 0x4a
adc ecx, 0
mov eax, 0xfffffffe
cmp eax, edx
mov edx, 0
sbb edx, ecx
jae 0x406545
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x4063d6
mov edi, 0x1c
cmp byte [esp + 0x2c], 0
je 0x4065c3
mov edx, dword [esp + 0x1c]
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + edx]
xor edx, edx
mov edi, dword [esp + 0x8c]
add edi, dword [ebp + 0x38]
setb dl
add edi, eax
adc edx, ecx
add edi, dword [esp + 0x28]
adc edx, 0
mov ecx, dword [ebp + 8]
add edi, dword [ecx]
adc edx, dword [ecx + 4]
add edi, 0x4c
adc edx, 0
mov ecx, edi
mov eax, dword [esp + 0x24]
xor ecx, eax
and edi, eax
mov eax, edi
shr eax, 0x1f
add edi, edi
add ecx, dword [ebp + 0x40]
adc edx, 0xffffffff
add ecx, edi
adc edx, eax
add ecx, 0x26
adc edx, 0
xor edi, edi
cmp edx, 0xffffffff
mov edx, dword [esp + 0x1c]
je 0x4065c7
mov ecx, dword [esp + 8]
mov dword [ecx + 0x34], 1
mov edi, 0x1c
jmp 0x4065c7
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], 0
test edx, edx
je 0x4065fd
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + edx - 1], 0x2f
jne 0x4065fd
cmp dword [ebp + 0x14], 0
jne 0x40643f
mov dword [esp + 0x2c], 0x10
mov ecx, dword [esp + 0xc]
or ecx, dword [esp + 0x14]
jne 0x40643f
mov eax, dword [esp + 0x10]
add eax, edi
add eax, 0x2e
mov ecx, dword [esp + 8]
cmp dword [ecx + 8], eax
mov edi, dword [ebp + 8]
jae 0x40662f
mov ecx, edi
mov edx, dword [esp + 8]
push 1
push eax
call fcn.00409740
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
je 0x406779
mov eax, dword [ecx + 0x14]
inc eax
cmp dword [ecx + 0x18], eax
jae 0x406654
mov ecx, dword [esp + 8]
lea edx, [ecx + 0x10]
mov ecx, edi
push 1
push eax
call fcn.00409740
add esp, 8
test eax, eax
je 0x406779
cmp dword [ebp + 0x14], 0
sete cl
xor eax, eax
or cl, byte [esp + 0x20]
jne 0x40667b
push 0x4df40
push 1
push dword [edi + 0x34]
call dword [edi + 0x28]
add esp, 0xc
test eax, eax
je 0x406779
mov dword [esp + 0x10], eax
mov ecx, edi
mov edx, dword [esp + 4]
push dword [esp + 0x28]
mov edi, dword [esp + 4]
push edi
call fcn.00406e90
add esp, 8
test eax, eax
je 0x406785
test esi, esi
setne al
mov edx, dword [esp + 4]
add edx, dword [esp + 0x28]
adc edi, 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov word [esp + 0x80], 0
movzx ecx, byte [esp + 0x20]
xor cl, 1
or cl, al
mov byte [esp + 0x24], cl
movzx eax, cl
shl eax, 3
mov dword [esp + 0x28], eax
mov eax, dword [esp + 8]
cmp dword [eax + 0x34], 0
mov esi, edi
je 0x40679a
mov dword [esp], esi
mov dword [esp + 4], edx
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0xc]
mov eax, 0
sbb eax, dword [esp + 0x14]
jb 0x406759
xor eax, eax
mov esi, dword [esp + 4]
mov ecx, 0xfffffffe
cmp ecx, esi
mov ecx, dword [esp]
sbb eax, ecx
mov dword [esp + 8], 0
jae 0x4068cd
xor edx, edx
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 4]
mov eax, 0
sbb eax, dword [esp]
jb 0x406888
xor eax, eax
jmp 0x40688c
mov dword [edi + 0x1c], 0x10
jmp 0x4063d4
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x4063d4
test esi, esi
mov ecx, dword [esp + 0x84]
je 0x4067b4
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x4063d4
mov dword [esp + 0x64], 0x4034b50
movzx eax, byte [esp + 0x24]
test al, al
je 0x4067c7
mov al, 0x14
mov byte [esp + 0x68], al
movzx eax, cx
mov byte [esp + 0x6a], cl
mov byte [esp + 0x6b], ah
mov eax, dword [esp + 0x28]
mov byte [esp + 0x6c], al
mov dword [esp + 0x6d], 0
mov dword [esp + 0x71], 0
mov dword [esp + 0x75], 0
mov dword [esp + 0x79], 0
mov byte [esp + 0x7d], 0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x7e], al
mov byte [esp + 0x7f], ah
mov eax, dword [ebp + 0x38]
mov byte [esp + 0x80], al
mov byte [esp + 0x81], ah
lea eax, [esp + 0x64]
push 0x1e
push eax
push esi
push edx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov edi, edx
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x406a3e
mov eax, edi
add eax, 0x1e
adc esi, 0
mov edi, dword [esp + 0x1c]
push edi
push dword [ebp + 0xc]
push esi
mov dword [esp + 0x10], eax
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x406a92
mov edx, dword [esp + 4]
add edx, edi
adc esi, 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
jmp 0x406a0c
lea eax, [esp + 0x38]
mov esi, dword [esp + 0x14]
cmp ecx, dword [esp + 0xc]
mov ecx, 0
sbb ecx, esi
jb 0x4068a4
mov esi, 0
jmp 0x4068a8
lea esi, [esp + 0x30]
jae 0x4068ae
lea edx, [esp + 0x40]
lea ecx, [esp + 0xa0]
mov dword [esp + 8], ecx
push eax
push esi
call fcn.00406f30
add esp, 8
mov edx, eax
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], edx
mov eax, dword [ebp + 0x38]
add edx, eax
mov dword [esp + 0x64], 0x4034b50
movzx eax, byte [esp + 0x24]
test al, al
je 0x4068e9
mov al, 0x14
mov byte [esp + 0x68], al
mov byte [esp + 0x69], 0
movzx eax, word [esp + 0x84]
mov byte [esp + 0x6a], al
mov byte [esp + 0x6b], ah
mov eax, dword [esp + 0x28]
mov byte [esp + 0x6c], al
mov dword [esp + 0x6d], 0
mov dword [esp + 0x71], 0
mov dword [esp + 0x75], 0
mov dword [esp + 0x79], 0
mov byte [esp + 0x7d], 0
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x7e], al
mov byte [esp + 0x7f], ah
mov byte [esp + 0x80], dl
mov byte [esp + 0x81], dh
lea eax, [esp + 0x64]
push 0x1e
push eax
push ecx
push esi
mov edi, dword [ebp + 8]
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x4069f6
mov esi, dword [esp + 4]
add esi, 0x1e
mov eax, dword [esp]
adc eax, 0
mov ecx, edi
mov edi, dword [esp + 0x1c]
push edi
push dword [ebp + 0xc]
mov dword [esp + 8], eax
push eax
push esi
push dword [ecx + 0x44]
mov eax, dword [ebp + 8]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
mov eax, edi
mov edi, dword [ebp + 8]
jne 0x4069e9
add esi, eax
mov ecx, dword [esp]
adc ecx, 0
cmp dword [esp + 8], 0
mov edx, esi
je 0x406a02
lea eax, [esp + 0xa0]
mov esi, dword [esp + 0xc]
push esi
push eax
mov dword [esp + 8], ecx
push ecx
push edx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov edi, edx
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x406a3e
mov ecx, esi
mov eax, edi
xor eax, esi
and edi, esi
mov ecx, edi
shr ecx, 0x1f
add edi, edi
add edi, eax
mov esi, dword [esp]
adc esi, ecx
mov edx, edi
jmp 0x406a0c
push dword [esp + 0x10]
push dword [edi + 0x34]
call dword [edi + 0x2c]
add esp, 8
mov dword [edi + 0x1c], 0x13
jmp 0x4063d4
mov dword [esp + 8], 0
mov esi, ecx
mov eax, dword [ebp + 0x38]
test eax, eax
mov dword [esp], esi
je 0x406a4d
push eax
push dword [ebp + 0x34]
push esi
push edx
mov ecx, dword [ebp + 8]
push dword [ecx + 0x44]
mov edi, eax
mov esi, edx
call dword [ecx + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x406a3e
mov eax, edi
add esi, edi
mov dword [esp + 4], esi
adc dword [esp], 0
jmp 0x406a51
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x4063d4
mov dword [esp + 4], edx
cmp byte [esp + 0x20], 0
je 0x406aae
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 8]
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x406a92
mov ecx, esi
add dword [esp + 4], esi
adc dword [esp], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
jmp 0x406b5d
push dword [esp + 0x10]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x4063d4
cmp dword [ebp + 0x14], 0
je 0x406b5d
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov eax, dword [esp]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
xor eax, eax
cmp ebx, 4
setb al
shl eax, 0xe
or eax, dword [ebx*4 + 0x43a84c]
test ebx, ebx
jne 0x406af9
or eax, 0x80000
lea ecx, [esp + 0x48]
push eax
push ecx
push 0x406fa0
mov esi, dword [esp + 0x1c]
push esi
call fcn.004055e0
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x9c]
push 4
push 0
push 0
push eax
push dword [ebp + 0x10]
push esi
call fcn.004041c0
add esp, 0x18
cmp eax, 1
jne 0x406c65
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov edi, ecx
mov dword [esp + 0x14], eax
or ecx, eax
je 0x406c5c
mov dword [esp + 0x48], 0x8074b50
mov edx, dword [esp + 0x88]
mov byte [esp + 0x4c], dl
mov byte [esp + 0x4d], dh
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x4e], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x4f], cl
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp dword [esp + 8], 0
je 0x406c81
mov byte [esp + 0x50], dl
mov byte [esp + 0x51], dh
mov ebx, edx
shr ebx, 0x10
mov byte [esp + 0x52], bl
mov ebx, ecx
shr ebx, 0x10
shr edx, 0x18
mov byte [esp + 0x53], dl
mov edx, ecx
shr edx, 0x18
mov byte [esp + 0x54], cl
mov byte [esp + 0x55], ch
mov byte [esp + 0x56], bl
mov byte [esp + 0x57], dl
mov edx, edi
mov byte [esp + 0x58], dl
mov byte [esp + 0x59], dh
mov ecx, edi
shr ecx, 0x10
mov byte [esp + 0x5a], cl
mov ecx, edi
shr ecx, 0x18
mov byte [esp + 0x5b], cl
mov dword [esp + 0x24], 0x38
mov dword [esp + 0x94], 0x30
mov ecx, 0x28
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x10], 0x17
mov eax, dword [esp + 0x14]
mov edx, eax
mov byte [esp + 0x1b], al
mov dword [esp + 0x98], 0x16
mov dword [esp + 0x90], 0x15
mov esi, 0x14
jmp 0x406cd6
xor eax, eax
xor ecx, ecx
jmp 0x406d7a
push dword [esp + 0x10]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x4063d4
test ecx, ecx
jne 0x4067a5
mov dword [esp + 0x50], edx
mov dword [esp + 0x24], 0x18
mov dword [esp + 0x94], 0x10
mov ecx, 8
mov dword [esp + 0x10], 0xf
mov dword [esp + 0x98], 0xe
mov edx, edi
mov byte [esp + 0x1b], dl
mov dword [esp + 0x90], 0xd
mov esi, 0xc
mov dword [esp + 0x20], 0x10
mov edx, edi
mov ebx, dword [esp + 0x14]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x1b]
mov byte [esp + esi + 0x48], al
test cl, 0x20
jne 0x406cf1
mov ebx, edx
mov edx, edi
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x14]
shrd edx, eax, cl
mov esi, dword [esp + 0x90]
mov byte [esp + esi + 0x48], bl
mov ebx, eax
shr ebx, cl
test cl, 0x20
jne 0x406d17
mov ebx, edx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
shrd edi, eax, cl
mov esi, dword [esp + 0x98]
mov byte [esp + esi + 0x48], bl
shr eax, cl
test cl, 0x20
jne 0x406d38
mov edx, edi
mov eax, edi
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x48], al
lea eax, [esp + 0x48]
mov esi, dword [esp + 0x20]
push esi
push eax
push dword [esp + 8]
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x4063d4
mov eax, dword [esp + 0x20]
add dword [esp + 4], eax
adc dword [esp], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
cmp dword [esp + 8], 0
je 0x406ddd
xor edx, edx
mov esi, 0xfffffffe
cmp esi, dword [esp + 0x38]
mov esi, 0
sbb esi, dword [esp + 0x3c]
jb 0x406d9b
xor edi, edi
jmp 0x406d9f
lea edi, [esp + 0x38]
mov esi, 0xfffffffe
cmp esi, eax
mov eax, 0
sbb eax, ecx
jb 0x406db6
mov eax, 0
jmp 0x406dba
lea eax, [esp + 0x30]
jae 0x406dc0
lea edx, [esp + 0x40]
lea ecx, [esp + 0xa0]
push edi
push eax
call fcn.00406f30
add esp, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
movzx ebx, word [esp + 0x84]
movzx esi, word [esp + 0x28]
movzx edx, word [esp + 0xc]
movzx edi, word [esp + 0x1c]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x34]
push dword [esp + 0x48]
push dword [esp + 0x48]
push 0
push 0
push ebx
push esi
push dword [esp + 0xac]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push ecx
push eax
push dword [esp + 0xc4]
push dword [ebp + 0x18]
push edx
push dword [esp + 0x4c]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407010
add esp, 0x54
test eax, eax
je 0x4063d4
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov ecx, dword [esp]
mov dword [eax + 4], ecx
mov edi, 1
jmp 0x4063d6