Function at 0x4062b0
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 esi, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], esi
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 4], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov eax, dword [ebp + 0x20]
mov edi, 6
test eax, eax
js 0x4062ff
mov edi, eax
mov dword [esp], ecx
mov dword [esp + 0x10], esi
mov eax, esi
or eax, edx
je 0x40631a
mov esi, edi
and esi, 0x400
mov ax, 8
jmp 0x406334
cmp dword [ebp + 0x14], 0
setne al
mov esi, edi
and esi, 0x400
sete cl
and cl, al
movzx eax, cl
shl eax, 3
test edi, 0x10000
mov dword [esp + 0x14], edx
jne 0x406348
movzx eax, ax
or eax, 0x800
mov dword [esp + 0x84], eax
and edi, 0xf
sete ah
test esi, esi
setne al
mov ecx, dword [ebx + 0x48]
mov dword [esp + 8], ecx
test ecx, ecx
je 0x40679c
cmp dword [ebx + 0x14], 2
jne 0x40679c
cmp dword [ebp + 0x14], 0
sete cl
cmp dword [ebp + 0x10], 0
setne dl
cmp dword [ebp + 0xc], 0
je 0x40679c
or dl, cl
je 0x40679c
cmp word [ebp + 0x1c], 0
setne cl
cmp dword [ebp + 0x18], 0
sete dl
test dl, cl
jne 0x40679c
cmp edi, 0xb
jae 0x40679c
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x34], 0
mov ecx, dword [ebx + 0x10]
je 0x4063da
xor ebx, ebx
cmp ecx, 0xffffffff
mov edx, dword [esp + 0x14]
jne 0x4063f9
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x4067a5
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x4063ec
mov bl, 1
cmp ecx, 0xffff
jne 0x4063f9
mov ecx, dword [esp + 8]
mov dword [ecx + 0x34], 1
xor ebx, ebx
mov ecx, dword [esp + 0x10]
or ecx, edx
je 0x406414
test esi, esi
jne 0x406414
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
jmp 0x4067a3
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0x2f
je 0x406498
test esi, esi
je 0x406431
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x88], eax
mov byte [esp + 0x2c], 1
jmp 0x406486
or ah, al
mov byte [esp + 0x10], ah
mov eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 0
call fcn.00404130
add esp, 0xc
mov dword [esp + 0x88], eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 0
mov eax, 0
cmp ecx, 4
setb cl
jb 0x40646d
mov eax, edi
mov dword [esp + 0x14], 0
or cl, byte [esp + 0x10]
mov byte [esp + 0x2c], cl
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x10], ecx
mov edi, eax
push dword [ebp + 0xc]
call fcn.00409790
add esp, 4
cmp eax, 0x10000
jb 0x4064a7
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x4067a3
mov dword [esp + 0x24], eax
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x8c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
or ecx, eax
mov ecx, 0
je 0x4064ee
mov edx, dword [edx]
lea ecx, [eax - 1]
mov dword [esp + 0x20], ecx
mov ecx, edx
not ecx
or ecx, dword [esp + 0x20]
add edx, ecx
inc edx
mov ecx, eax
not ecx
and ecx, edx
not edx
and edx, eax
sub edx, ecx
mov ecx, edx
and ecx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 8]
mov edx, dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x8c]
setb al
mov dword [esp + 0x1c], edx
add ecx, edx
adc eax, 0
mov edx, ecx
mov dword [esp + 0xc], ecx
add ecx, 0x2e
mov dword [esp + 0x20], ecx
adc eax, 0
mov edx, 0xfffffffe
add edx, 0xffffffe4
mov ecx, 0
adc ecx, 0xffffffff
cmp edx, dword [esp + 0x20]
sbb ecx, eax
jae 0x406549
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x4067a3
mov ecx, 0x1c
test bl, bl
je 0x4065dd
mov ecx, dword [esp + 0x24]
mov edx, ecx
shr edx, 0x1f
lea eax, [ecx + ecx]
add eax, dword [esp + 0x28]
adc edx, 0
mov ecx, dword [ebp + 8]
add eax, dword [ecx]
adc edx, dword [ecx + 4]
add eax, 0x4c
adc edx, 0
mov ebx, eax
mov ecx, dword [esp + 0x8c]
and ebx, ecx
add ebx, ebx
mov dword [esp + 0x20], ebx
xor eax, ecx
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
add ecx, dword [ebp + 0x38]
setb bl
add ecx, eax
adc ebx, edx
add ecx, dword [esp + 0x20]
adc ebx, 0
add ecx, 0x16
adc ebx, 0
mov edx, ecx
and edx, dword [ebp + 0x40]
mov eax, edx
shr eax, 0x1f
add edx, edx
xor ecx, dword [ebp + 0x40]
add ecx, edx
mov edx, dword [esp + 0x24]
adc eax, ebx
add ecx, 0x10
adc eax, 0xffffffff
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4065e1
mov eax, dword [esp + 8]
mov dword [eax + 0x34], 1
mov ecx, 0x1c
jmp 0x4065e1
mov edx, dword [esp + 0x24]
mov dword [esp + 0x20], 0
test edx, edx
je 0x40661a
mov eax, dword [ebp + 0xc]
cmp byte [eax + edx - 1], 0x2f
mov ebx, dword [ebp + 8]
jne 0x40661a
cmp dword [ebp + 0x14], 0
jne 0x40679c
mov dword [esp + 0x20], 0x10
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
jne 0x40679c
mov eax, dword [esp + 0xc]
add eax, ecx
add eax, 0x2e
mov ebx, dword [esp + 8]
cmp dword [ebx + 8], eax
jae 0x406647
mov ecx, dword [ebp + 8]
mov edx, ebx
push 1
push eax
call fcn.004095a0
mov ecx, dword [ebp + 8]
add esp, 8
test eax, eax
je 0x4067af
mov eax, dword [ebx + 0x14]
inc eax
cmp dword [ebx + 0x18], eax
jae 0x40666c
lea edx, [ebx + 0x10]
mov ecx, dword [ebp + 8]
push 1
push eax
call fcn.004095a0
mov ecx, dword [ebp + 8]
add esp, 8
test eax, eax
je 0x4067af
cmp dword [ebp + 0x14], 0
sete cl
xor eax, eax
or cl, byte [esp + 0x2c]
jne 0x406696
push 0x4df40
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x28]
add esp, 0xc
test eax, eax
je 0x4067da
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 4]
mov edx, ebx
push dword [esp + 0x28]
push dword [esp + 4]
call fcn.00406e70
add esp, 8
test eax, eax
je 0x4067b8
test esi, esi
setne al
add ebx, dword [esp + 0x28]
mov esi, dword [esp]
adc esi, 0
mov dword [esp + 4], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], esi
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 ebx, byte [esp + 0x2c]
xor bl, 1
or bl, al
movzx eax, bl
shl eax, 3
mov dword [esp + 0x28], eax
mov eax, dword [esp + 8]
cmp dword [eax + 0x34], 0
je 0x4067ca
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x10]
mov eax, 0
sbb eax, dword [esp + 0x14]
mov dword [esp], esi
jb 0x406779
xor esi, esi
mov ecx, dword [esp + 4]
mov edx, 0xfffffffe
cmp edx, ecx
mov eax, 0
sbb esi, dword [esp]
mov esi, dword [esp]
mov edx, esi
mov dword [esp + 0x1c], 0
jae 0x406910
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 4]
mov eax, 0
sbb eax, esi
mov esi, dword [esp + 0x10]
jb 0x4068cc
xor eax, eax
jmp 0x4068d0
mov dword [ebx + 0x1c], 0x18
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ecx + 0x1c], 0x10
jmp 0x4067a3
push dword [esp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x4067a3
test esi, esi
je 0x4067e6
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x4067a3
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x10
jmp 0x4067a3
mov dword [esp + 0x64], 0x4034b50
test bl, bl
je 0x4067f4
mov bl, 0x14
mov byte [esp + 0x68], bl
mov ecx, dword [esp + 0x84]
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 + 0x24]
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
mov ebx, dword [esp + 0x10]
push ebx
mov dword [esp + 0x10], esi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x406aa5
lea eax, [ebx + ebx]
and eax, 0x3c
xor ebx, 0x1e
add ebx, eax
mov ecx, dword [esp]
adc ecx, 0
mov eax, esi
mov esi, dword [esp + 0x24]
push esi
push dword [ebp + 0xc]
mov dword [esp + 8], ecx
push ecx
push ebx
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x406a95
add ebx, esi
adc dword [esp], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 0x38]
mov ecx, ebx
jmp 0x406a29
lea eax, [esp + 0x38]
mov ecx, 0xfffffffe
cmp ecx, esi
mov ecx, 0
sbb ecx, dword [esp + 0x14]
jb 0x4068e9
mov esi, 0
jmp 0x4068ed
lea esi, [esp + 0x30]
jae 0x4068f3
lea edx, [esp + 0x40]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x1c], ecx
push eax
push esi
call fcn.00406f20
add esp, 8
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov dword [esp + 0x14], eax
mov edx, dword [ebp + 0x38]
add edx, eax
mov dword [esp + 0x64], 0x4034b50
test bl, bl
je 0x40692b
mov bl, 0x14
mov byte [esp + 0x68], bl
mov byte [esp + 0x69], 0
movzx ebx, word [esp + 0x84]
mov byte [esp + 0x6a], bl
mov byte [esp + 0x6b], bh
mov ebx, dword [esp + 0x28]
mov byte [esp + 0x6c], bl
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 ebx, dword [esp + 0x24]
mov byte [esp + 0x7e], bl
mov byte [esp + 0x7f], bh
mov byte [esp + 0x80], dl
mov byte [esp + 0x81], dh
lea edx, [esp + 0x64]
push 0x1e
push edx
push dword [esp + 0x10]
push ecx
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x406aa5
mov ecx, esi
mov esi, dword [esp + 4]
add esi, 0x1e
mov eax, dword [esp]
adc eax, 0
push ebx
push dword [ebp + 0xc]
mov dword [esp + 8], eax
push eax
push esi
push dword [ecx + 0x44]
call dword [ecx + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x406a95
add esi, ebx
mov edx, dword [esp]
adc edx, 0
cmp dword [esp + 0x1c], 0
mov ecx, esi
mov dword [esp], edx
je 0x406a1e
lea eax, [esp + 0xa0]
mov ebx, dword [esp + 0x14]
push ebx
push eax
push edx
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
mov esi, ecx
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x406c60
mov ecx, ebx
add esi, ebx
adc dword [esp], 0
mov eax, dword [ebp + 0x38]
mov ecx, esi
jmp 0x406a29
mov dword [esp + 0x1c], 0
mov eax, dword [ebp + 0x38]
test eax, eax
mov dword [esp + 4], ecx
je 0x406a54
push eax
push dword [ebp + 0x34]
push dword [esp + 8]
push ecx
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
mov ebx, eax
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x406aa5
add dword [esp + 4], ebx
adc dword [esp], 0
cmp byte [esp + 0x2c], 0
je 0x406ab1
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 0x406a95
mov ecx, esi
add dword [esp + 4], esi
adc dword [esp], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
jmp 0x406b60
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x4067a3
cmp dword [ebp + 0x14], 0
je 0x406b60
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 edi, 4
setb al
shl eax, 0xe
or eax, dword [edi*4 + 0x44084c]
test edi, edi
jne 0x406afc
or eax, 0x80000
lea ecx, [esp + 0x48]
push eax
push ecx
push 0x406f90
mov esi, dword [esp + 0x18]
push esi
call fcn.00405630
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.00404200
add esp, 0x18
cmp eax, 1
jne 0x406c78
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 + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov esi, eax
mov dword [esp + 8], ecx
or eax, ecx
je 0x406c6f
mov dword [esp + 0x48], 0x8074b50
mov ecx, dword [esp + 0x88]
mov byte [esp + 0x4c], cl
mov byte [esp + 0x4d], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x4e], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x4f], al
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x1c], 0
je 0x406c94
mov byte [esp + 0x50], bl
mov byte [esp + 0x51], bh
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x52], al
mov eax, ecx
shr eax, 0x10
shr ebx, 0x18
mov byte [esp + 0x53], bl
mov ebx, ecx
shr ebx, 0x18
mov byte [esp + 0x54], cl
mov byte [esp + 0x55], ch
mov byte [esp + 0x56], al
mov byte [esp + 0x57], bl
mov ecx, esi
mov byte [esp + 0x58], cl
mov byte [esp + 0x59], ch
mov eax, esi
shr eax, 0x10
mov byte [esp + 0x5a], al
mov eax, esi
shr eax, 0x18
mov byte [esp + 0x5b], al
mov dword [esp + 0xc], 0x38
mov dword [esp + 0x94], 0x30
mov ecx, 0x28
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x2c], 0x17
mov eax, dword [esp + 8]
mov byte [esp + 0x1b], al
mov dword [esp + 0x98], 0x16
mov dword [esp + 0x90], 0x15
mov edi, 0x14
jmp 0x406ce9
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x4067a3
xor eax, eax
xor ecx, ecx
jmp 0x406d8b
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x4067a3
test ecx, ecx
jne 0x4067ce
mov dword [esp + 0x50], ebx
mov dword [esp + 0xc], 0x18
mov dword [esp + 0x94], 0x10
mov ecx, 8
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x98], 0xe
mov eax, esi
mov byte [esp + 0x1b], al
mov dword [esp + 0x90], 0xd
mov edi, 0xc
mov dword [esp + 0x10], 0x10
mov ebx, esi
mov eax, dword [esp + 8]
shrd ebx, eax, cl
shr eax, cl
movzx edx, byte [esp + 0x1b]
mov byte [esp + edi + 0x48], dl
test cl, 0x20
jne 0x406d04
mov eax, ebx
mov ebx, esi
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 8]
shrd ebx, edx, cl
mov edi, dword [esp + 0x90]
mov byte [esp + edi + 0x48], al
mov eax, edx
shr eax, cl
test cl, 0x20
jne 0x406d2a
mov eax, ebx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
shrd esi, edx, cl
mov edi, dword [esp + 0x98]
mov byte [esp + edi + 0x48], al
shr edx, cl
test cl, 0x20
jne 0x406d49
mov edx, esi
mov eax, dword [esp + 0x2c]
mov byte [esp + eax + 0x48], dl
lea eax, [esp + 0x48]
mov esi, dword [esp + 0x10]
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 0x4067a3
mov eax, dword [esp + 0x10]
add dword [esp + 4], eax
adc dword [esp], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x1c], 0
je 0x406dee
xor edx, edx
mov esi, 0xfffffffe
cmp esi, dword [esp + 0x38]
mov esi, 0
sbb esi, dword [esp + 0x3c]
jb 0x406dac
xor edi, edi
jmp 0x406db0
lea edi, [esp + 0x38]
mov esi, 0xfffffffe
cmp esi, eax
mov eax, 0
sbb eax, ecx
jb 0x406dc7
mov eax, 0
jmp 0x406dcb
lea eax, [esp + 0x30]
jae 0x406dd1
lea edx, [esp + 0x40]
lea ecx, [esp + 0xa0]
push edi
push eax
call fcn.00406f20
add esp, 8
mov dword [esp + 0x14], 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 + 0x14]
movzx edi, word [esp + 0x24]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x28]
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 + 0x60]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406fe0
add esp, 0x54
test eax, eax
je 0x4067a3
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 ebx, 1
jmp 0x4067a5