Function at 0x406280
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 edi, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], edi
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x14], 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 esi, 6
test eax, eax
js 0x4062cf
mov esi, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov eax, edi
or eax, edx
je 0x4062eb
mov edi, esi
and edi, 0x400
mov ax, 8
jmp 0x406305
cmp dword [ebp + 0x14], 0
setne al
mov edi, esi
and edi, 0x400
sete cl
and cl, al
movzx eax, cl
shl eax, 3
test esi, 0x10000
mov dword [esp + 0x18], edx
jne 0x406319
movzx eax, ax
or eax, 0x800
mov dword [esp + 0x84], eax
and esi, 0xf
sete ah
test edi, edi
setne al
mov ecx, dword [ebx + 0x48]
mov dword [esp + 4], ecx
test ecx, ecx
je 0x406390
cmp dword [ebx + 0x14], 2
jne 0x406390
cmp dword [ebp + 0x14], 0
sete cl
cmp dword [ebp + 0x10], 0
setne dl
cmp dword [ebp + 0xc], 0
je 0x406390
or dl, cl
je 0x406390
cmp word [ebp + 0x1c], 0
setne cl
cmp dword [ebp + 0x18], 0
sete dl
test dl, cl
jne 0x406390
cmp esi, 0xb
jae 0x406390
mov ecx, dword [esp + 4]
cmp dword [ecx + 0x34], 0
mov ecx, dword [ebx + 0x10]
je 0x4063a3
xor ebx, ebx
cmp ecx, 0xffffffff
mov edx, dword [esp + 0x18]
jne 0x4063c2
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x406399
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 edx, dword [esp + 0x18]
test edx, edx
jne 0x4063b5
mov bl, 1
cmp ecx, 0xffff
jne 0x4063c2
mov ecx, dword [esp + 4]
mov dword [ecx + 0x34], 1
xor ebx, ebx
mov ecx, dword [esp + 0xc]
or ecx, edx
je 0x4063da
test edi, edi
jne 0x4063da
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
jmp 0x406397
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0x2f
je 0x40645e
test edi, edi
je 0x4063f7
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x8c], eax
mov byte [esp + 0x2c], 1
jmp 0x40644c
or ah, al
mov byte [esp + 0xc], ah
mov eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 0
call fcn.00404130
add esp, 0xc
mov dword [esp + 0x8c], 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 0x406433
mov eax, esi
mov dword [esp + 0x18], 0
or cl, byte [esp + 0xc]
mov byte [esp + 0x2c], cl
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0xc], ecx
mov esi, eax
push dword [ebp + 0xc]
call fcn.004097a0
add esp, 4
cmp eax, 0x10000
jb 0x40646d
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x406397
mov dword [esp + 0x20], eax
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x24]
or edx, eax
mov edx, 0
je 0x4064ab
mov edx, 0xfffffffe
add edx, eax
inc edx
mov ecx, dword [ecx]
and ecx, edx
sub eax, ecx
and eax, edx
mov edx, eax
mov dword [esp + 0x28], edx
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
xor edx, edx
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x80]
setb dl
mov dword [esp + 0x10], ecx
add eax, ecx
adc edx, 0
add eax, 0x4a
adc edx, 0
mov ecx, 0xfffffffe
cmp ecx, eax
sbb dword [esp + 0x88], edx
jae 0x4064f4
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x406397
mov ecx, 0x1c
test bl, bl
je 0x40656e
mov ecx, dword [esp + 0x20]
mov eax, ecx
shr eax, 0x1f
lea ebx, [ecx + ecx]
xor edx, edx
mov ecx, dword [esp + 0x80]
add ecx, dword [ebp + 0x38]
setb dl
add ecx, ebx
adc edx, eax
add ecx, dword [esp + 0x28]
adc edx, 0
add ecx, dword [esp + 0x10]
adc edx, 0
mov eax, dword [ebp + 8]
add ecx, dword [eax]
adc edx, dword [eax + 4]
add ecx, 0x62
adc edx, 0
mov eax, ecx
and eax, dword [ebp + 0x40]
mov ebx, eax
shr ebx, 0x1f
add eax, eax
xor ecx, dword [ebp + 0x40]
add ecx, eax
adc ebx, edx
mov edx, dword [esp + 0x20]
add ecx, 0x10
adc ebx, 0xffffffff
xor ecx, ecx
cmp ebx, 0xffffffff
je 0x406572
mov eax, dword [esp + 4]
mov dword [eax + 0x34], 1
mov ecx, 0x1c
jmp 0x406572
mov edx, dword [esp + 0x20]
xor ebx, ebx
test edx, edx
je 0x40659f
mov eax, dword [ebp + 0xc]
cmp byte [eax + edx - 1], 0x2f
jne 0x40659f
cmp dword [ebp + 0x14], 0
jne 0x4063ce
mov ebx, 0x10
mov eax, dword [esp + 0xc]
or eax, dword [esp + 0x18]
jne 0x4063ce
mov dword [esp + 0x88], ebx
mov eax, edx
and eax, 0x2e
xor edx, 0x2e
add edx, dword [esp + 0x80]
lea ebx, [edx + eax*2]
add ebx, ecx
add ebx, dword [esp + 0x10]
mov ecx, dword [esp + 4]
cmp dword [ecx + 8], ebx
jae 0x4065e5
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 4]
push 1
push ebx
call fcn.00409570
mov ecx, dword [esp + 0xc]
add esp, 8
test eax, eax
je 0x40672e
mov eax, dword [ecx + 0x14]
inc eax
cmp dword [ecx + 0x18], eax
jae 0x406607
lea edx, [ecx + 0x10]
mov ecx, dword [ebp + 8]
push 1
push eax
call fcn.00409570
add esp, 8
test eax, eax
je 0x40672e
cmp dword [ebp + 0x14], 0
sete cl
xor eax, eax
or cl, byte [esp + 0x2c]
mov ebx, dword [ebp + 8]
jne 0x406631
push 0x4df40
push 1
push dword [ebx + 0x34]
call dword [ebx + 0x28]
add esp, 0xc
test eax, eax
je 0x406769
mov dword [esp + 0x10], eax
mov ecx, ebx
mov ebx, dword [esp + 0x14]
mov edx, ebx
push dword [esp + 0x28]
push dword [esp + 0xc]
call fcn.00406e10
add esp, 8
test eax, eax
je 0x40673d
test edi, edi
setne al
add ebx, dword [esp + 0x28]
mov edi, dword [esp + 8]
adc edi, 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x60], 0
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 word [esp + 0x7c], 0
movzx ecx, byte [esp + 0x2c]
xor cl, 1
or cl, al
movzx eax, cl
shl eax, 3
mov dword [esp + 0x28], eax
mov eax, dword [esp + 4]
cmp dword [eax + 0x34], 0
je 0x406752
mov byte [esp + 4], cl
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0xc]
mov eax, 0
sbb eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov dword [esp + 8], edi
jb 0x406711
xor eax, eax
mov ecx, 0xfffffffe
cmp ecx, ebx
sbb eax, edi
mov eax, ebx
mov ecx, edi
mov dword [esp + 0x24], 0
jae 0x40688d
xor edx, edx
mov ecx, 0xfffffffe
cmp ecx, ebx
mov eax, 0
sbb eax, edi
jb 0x40684a
xor eax, eax
jmp 0x40684e
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x10
jmp 0x406397
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x406397
test edi, edi
mov edx, dword [esp + 0x20]
je 0x406775
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x406397
mov dword [ebx + 0x1c], 0x10
jmp 0x406397
mov dword [esp + 0x60], 0x4034b50
test cl, cl
je 0x406783
mov cl, 0x14
mov byte [esp + 0x64], cl
mov ecx, dword [esp + 0x84]
movzx eax, cx
mov byte [esp + 0x66], cl
mov byte [esp + 0x67], ah
mov eax, dword [esp + 0x28]
mov byte [esp + 0x68], al
mov dword [esp + 0x69], 0
mov dword [esp + 0x6d], 0
mov dword [esp + 0x71], 0
mov dword [esp + 0x75], 0
mov byte [esp + 0x79], 0
mov byte [esp + 0x7a], dl
mov byte [esp + 0x7b], dh
mov eax, dword [ebp + 0x38]
mov byte [esp + 0x7c], al
mov byte [esp + 0x7d], ah
lea eax, [esp + 0x60]
push 0x1e
push eax
push edi
push dword [esp + 0x20]
mov ebx, dword [ebp + 8]
push dword [ebx + 0x44]
call dword [ebx + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40699d
mov eax, dword [esp + 0x14]
add eax, 0x1e
adc edi, 0
push dword [esp + 0x20]
push dword [ebp + 0xc]
push edi
mov dword [esp + 0x20], eax
push eax
push dword [ebx + 0x44]
call dword [ebx + 0x3c]
add esp, 0x14
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jne 0x406990
mov eax, ecx
mov ecx, dword [esp + 0x14]
add ecx, eax
adc edi, 0
mov dword [esp + 8], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
jmp 0x4069b5
lea eax, [esp + 0x38]
cmp ecx, dword [esp + 0xc]
mov ecx, 0
sbb ecx, dword [esp + 0x18]
jb 0x406864
mov edi, 0
jmp 0x406868
lea edi, [esp + 0x30]
jae 0x40686e
lea edx, [esp + 0x40]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x24], ecx
push eax
push edi
call fcn.00406ec0
add esp, 8
mov edx, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov ebx, dword [ebp + 0x38]
add edx, ebx
mov dword [esp + 0x60], 0x4034b50
movzx ebx, byte [esp + 4]
test bl, bl
je 0x4068a9
mov bl, 0x14
mov byte [esp + 0x64], bl
mov byte [esp + 0x65], 0
movzx ebx, word [esp + 0x84]
mov byte [esp + 0x66], bl
mov byte [esp + 0x67], bh
mov ebx, dword [esp + 0x28]
mov byte [esp + 0x68], bl
mov dword [esp + 0x69], 0
mov dword [esp + 0x6d], 0
mov dword [esp + 0x71], 0
mov dword [esp + 0x75], 0
mov byte [esp + 0x79], 0
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x7a], bl
mov edi, ebx
mov byte [esp + 0x7b], bh
mov byte [esp + 0x7c], dl
mov byte [esp + 0x7d], dh
lea edx, [esp + 0x60]
push 0x1e
push edx
push ecx
push eax
mov ebx, dword [ebp + 8]
push dword [ebx + 0x44]
call dword [ebx + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40699d
mov eax, dword [esp + 0x14]
add eax, 0x1e
mov ecx, dword [esp + 8]
adc ecx, 0
push edi
push dword [ebp + 0xc]
push ecx
push eax
push dword [ebx + 0x44]
call dword [ebx + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x406990
mov eax, edi
mov edi, dword [esp + 8]
mov ecx, eax
add ecx, dword [esp + 0x14]
adc edi, 0
add ecx, 0x1e
adc edi, 0
cmp dword [esp + 0x24], 0
je 0x4069a9
lea eax, [esp + 0xa0]
push dword [esp + 0x18]
push eax
push edi
push ecx
push dword [ebx + 0x44]
mov dword [esp + 0x18], ecx
call dword [ebx + 0x3c]
mov ecx, dword [esp + 0x2c]
add esp, 0x14
cmp eax, ecx
jne 0x40699d
mov eax, dword [esp + 4]
add eax, ecx
adc edi, 0
mov dword [esp + 8], edi
mov ecx, eax
jmp 0x4069b5
push dword [esp + 0x10]
push dword [ebx + 0x34]
call dword [ebx + 0x2c]
add esp, 8
mov dword [ebx + 0x1c], 0x13
jmp 0x406397
mov dword [esp + 8], edi
mov dword [esp + 0x24], 0
mov eax, dword [ebp + 0x38]
test eax, eax
mov dword [esp + 4], ecx
je 0x4069e1
push eax
push dword [ebp + 0x34]
push dword [esp + 0x10]
push ecx
push dword [ebx + 0x44]
mov edi, eax
call dword [ebx + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x40699d
add dword [esp + 4], edi
adc dword [esp + 8], 0
cmp byte [esp + 0x2c], 0
je 0x406a27
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x406bd8
mov ecx, esi
add dword [esp + 4], esi
adc dword [esp + 8], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0
jmp 0x406ad8
cmp dword [ebp + 0x14], 0
je 0x406ad8
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
xor eax, eax
cmp esi, 4
setb al
shl eax, 0xe
or eax, dword [esi*4 + 0x44184c]
test esi, esi
jne 0x406a73
or eax, 0x80000
lea ecx, [esp + 0x48]
push eax
push ecx
push 0x406f30
mov esi, dword [esp + 0x1c]
push esi
call fcn.00405660
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.00404210
add esp, 0x18
cmp eax, 1
jne 0x406c03
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 + 8], eax
push dword [esp + 0x10]
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 edi, eax
mov dword [esp + 0xc], ecx
or eax, ecx
je 0x406bf4
mov dword [esp + 0x48], 0x8074b50
mov ecx, dword [esp + 0x8c]
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 + 0x24], 0
je 0x406c1f
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, edi
mov byte [esp + 0x58], cl
mov byte [esp + 0x59], ch
mov eax, edi
shr eax, 0x10
mov byte [esp + 0x5a], al
mov eax, edi
shr eax, 0x18
mov byte [esp + 0x5b], al
mov dword [esp + 0x10], 0x38
mov dword [esp + 0x94], 0x30
mov ecx, 0x28
mov dword [esp + 0x14], 0x18
mov dword [esp + 0x2c], 0x17
mov eax, dword [esp + 0xc]
mov byte [esp + 0x1f], al
mov dword [esp + 0x98], 0x16
mov dword [esp + 0x90], 0x15
mov esi, 0x14
jmp 0x406c74
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 0x406397
mov dword [esp + 0xc], 0
xor ecx, ecx
jmp 0x406d1d
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 0x406397
test ecx, ecx
jne 0x40675a
mov dword [esp + 0x50], ebx
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x94], 0x10
mov ecx, 8
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x98], 0xe
mov eax, edi
mov byte [esp + 0x1f], al
mov dword [esp + 0x90], 0xd
mov esi, 0xc
mov dword [esp + 0x14], 0x10
mov ebx, edi
mov eax, dword [esp + 0xc]
shrd ebx, eax, cl
shr eax, cl
movzx edx, byte [esp + 0x1f]
mov byte [esp + esi + 0x48], dl
test cl, 0x20
jne 0x406c8f
mov eax, ebx
mov ebx, edi
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xc]
shrd ebx, edx, cl
mov esi, dword [esp + 0x90]
mov byte [esp + esi + 0x48], al
mov eax, edx
shr eax, cl
test cl, 0x20
jne 0x406cb5
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
shrd edi, edx, cl
mov esi, edi
mov edi, dword [esp + 0x98]
mov byte [esp + edi + 0x48], al
shr edx, cl
test cl, 0x20
jne 0x406cd6
mov edx, esi
mov eax, dword [esp + 0x2c]
mov byte [esp + eax + 0x48], dl
lea eax, [esp + 0x48]
mov esi, dword [esp + 0x14]
push esi
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x406397
mov eax, dword [esp + 0x14]
add dword [esp + 4], eax
adc dword [esp + 8], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x44]
mov edi, dword [ebp + 0x3c]
cmp dword [esp + 0x24], 0
je 0x406d89
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x38]
mov eax, 0
sbb eax, dword [esp + 0x3c]
jb 0x406d41
xor ebx, ebx
jmp 0x406d45
lea ebx, [esp + 0x38]
mov eax, 0xfffffffe
cmp eax, dword [esp + 0xc]
mov eax, 0
sbb eax, ecx
jb 0x406d5e
mov eax, 0
jmp 0x406d62
lea eax, [esp + 0x30]
jae 0x406d68
lea edx, [esp + 0x40]
lea ecx, [esp + 0xa0]
push ebx
push eax
call fcn.00406ec0
add esp, 8
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x44]
movzx esi, word [esp + 0x84]
movzx eax, word [esp + 0x28]
movzx edx, word [esp + 0x18]
movzx ebx, word [esp + 0x20]
push dword [ebp + 0x40]
push edi
push dword [esp + 0x90]
push dword [esp + 0x48]
push dword [esp + 0x48]
push 0
push 0
push esi
push eax
push dword [esp + 0xb0]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push ecx
push dword [esp + 0x40]
push dword [esp + 0xb8]
push dword [ebp + 0x18]
push edx
push dword [esp + 0x68]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406f80
add esp, 0x54
test eax, eax
je 0x406397
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
mov ebx, 1
jmp 0x406399