Function at 0x406230
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 + 0x3c], edx
mov dword [esp + 0x38], edi
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 8], eax
mov dword [esp + 0x30], eax
mov dword [esp], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov eax, dword [ebp + 0x20]
mov esi, 6
test eax, eax
js 0x406282
mov esi, eax
mov eax, edi
or eax, edx
jne 0x406299
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x40629d
mov eax, esi
and eax, 0x400
jne 0x40629d
mov cx, 8
test esi, 0x10000
mov dword [esp + 0x14], edx
jne 0x4062b2
movzx ecx, cx
or ecx, 0x800
mov dword [esp + 0x88], ecx
mov eax, esi
and eax, 0xf
mov dword [esp + 0x1c], eax
sete dh
mov eax, esi
xor eax, 0xfffffbff
or esi, 0x400
and esi, eax
setne al
mov ecx, dword [ebx + 0x48]
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x406342
cmp dword [ebx + 0x14], 2
jne 0x406342
cmp dword [ebp + 0x14], 0
sete cl
cmp dword [ebp + 0x10], 0
setne dl
cmp dword [ebp + 0xc], 0
je 0x406342
or dl, cl
je 0x406342
cmp word [ebp + 0x1c], 0
setne cl
cmp dword [ebp + 0x18], 0
sete dl
test dl, cl
jne 0x406342
cmp dword [esp + 0x1c], 0xb
jae 0x406342
mov byte [esp + 0x10], dh
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x34], 0
mov ecx, dword [ebx + 0x10]
je 0x406355
xor ebx, ebx
cmp ecx, 0xffffffff
mov edx, dword [esp + 0x14]
jne 0x406374
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x40634b
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 + 0x14]
test edx, edx
jne 0x406367
mov bl, 1
cmp ecx, 0xffff
jne 0x406374
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x34], 1
xor ebx, ebx
mov ecx, edi
or ecx, edx
je 0x40638a
test esi, esi
jne 0x40638a
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
jmp 0x406349
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0x2f
je 0x406406
test esi, esi
je 0x4063a7
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x8c], eax
mov byte [esp + 0x20], 1
jmp 0x4063f4
or byte [esp + 0x10], al
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
push 0
call fcn.00404110
add esp, 0xc
mov dword [esp + 0x8c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 0
mov eax, 0
cmp edi, 4
setb cl
jb 0x4063e8
mov eax, dword [esp + 0x1c]
or cl, byte [esp + 0x10]
mov byte [esp + 0x20], cl
mov dword [esp + 0x1c], eax
push dword [ebp + 0xc]
call fcn.004097e0
add esp, 4
cmp eax, 0x10000
jb 0x406415
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x406349
mov dword [esp + 0x10], eax
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x90], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
mov dword [esp + 4], 0
mov edx, dword [ecx + 0x24]
or edx, eax
mov edx, 0
je 0x40644b
lea edx, [eax - 1]
mov ecx, dword [ecx]
and ecx, edx
sub eax, ecx
and eax, edx
mov edx, eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
xor edx, edx
mov eax, dword [esp + 0x90]
add eax, dword [esp + 0x10]
setb dl
mov dword [esp + 0x80], ecx
add eax, ecx
adc edx, 0
mov ecx, eax
mov dword [esp + 0x84], eax
add ecx, 0x4a
adc edx, 0
mov eax, 0xfffffffe
cmp eax, ecx
sbb dword [esp + 4], edx
jae 0x40649d
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x406349
test bl, bl
je 0x406515
mov ecx, dword [esp + 0x10]
shr ecx, 0x1f
mov dword [esp + 0x7c], ecx
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x90]
add ecx, dword [ebp + 0x38]
mov ebx, 0
adc ebx, 0xffffffff
add ecx, dword [ebp + 0x40]
adc ebx, 0
mov edx, dword [esp + 0x10]
add edx, edx
add ecx, edx
adc ebx, dword [esp + 0x7c]
add ecx, dword [esp + 0x24]
adc ebx, 0
add ecx, dword [esp + 0x80]
adc ebx, 0
mov edx, dword [ebp + 8]
add ecx, dword [edx]
adc ebx, dword [edx + 4]
mov edx, dword [esp + 0x10]
add ecx, 0x72
adc ebx, 0
cmp ebx, 0xffffffff
je 0x406521
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x34], 1
mov dword [esp + 4], 0x1c
jmp 0x406521
mov dword [esp + 4], 0x1c
mov edx, dword [esp + 0x10]
mov dword [esp + 0x80], 0
test edx, edx
je 0x406562
mov ecx, dword [ebp + 0xc]
cmp byte [ecx + edx - 1], 0x2f
mov ecx, dword [ebp + 8]
jne 0x406565
cmp dword [ebp + 0x14], 0
jne 0x406556
mov dword [esp + 0x80], 0x10
mov edx, edi
or edx, dword [esp + 0x14]
je 0x406565
mov dword [ecx + 0x1c], 0x18
jmp 0x406349
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x84]
add eax, edx
add eax, 0x2e
mov ebx, dword [esp + 0xc]
cmp dword [ebx + 8], eax
jae 0x406596
mov edx, ebx
push 1
push eax
call fcn.00409510
mov ecx, dword [ebp + 8]
add esp, 8
test eax, eax
je 0x4066db
mov eax, dword [ebx + 0x14]
inc eax
cmp dword [ebx + 0x18], eax
jae 0x4065b8
lea edx, [ebx + 0x10]
push 1
push eax
call fcn.00409510
mov ecx, dword [ebp + 8]
add esp, 8
test eax, eax
je 0x4066db
cmp dword [ebp + 0x14], 0
sete dl
xor eax, eax
or dl, byte [esp + 0x20]
jne 0x4065e3
push 0x4df40
push 1
push dword [ecx + 0x34]
mov ebx, ecx
call dword [ecx + 0x28]
mov ecx, ebx
add esp, 0xc
test eax, eax
je 0x4066db
mov dword [esp + 4], eax
mov ebx, dword [esp + 8]
mov edx, ebx
push dword [esp + 0x24]
push dword [esp + 4]
call fcn.00406d70
add esp, 8
test eax, eax
je 0x4066e7
test esi, esi
setne al
add ebx, dword [esp + 0x24]
mov esi, dword [esp]
adc esi, 0
mov dword [esp + 8], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x5c], 0
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 word [esp + 0x78], 0
movzx ebx, byte [esp + 0x20]
xor bl, 1
or bl, al
movzx eax, bl
shl eax, 3
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x34], 0
je 0x4066fc
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, dword [esp + 0x14]
mov dword [esp], esi
jb 0x4066bc
xor esi, esi
mov ecx, dword [esp + 8]
mov edx, 0xfffffffe
cmp edx, ecx
mov eax, 0
sbb esi, dword [esp]
mov esi, dword [esp]
mov edx, ecx
mov ecx, esi
mov dword [esp + 0xc], 0
jae 0x406820
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 8]
mov eax, 0
sbb eax, esi
jb 0x4067dc
xor eax, eax
jmp 0x4067e0
mov dword [ecx + 0x1c], 0x10
jmp 0x406349
push dword [esp + 4]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x406349
test esi, esi
mov ecx, dword [esp + 0x88]
je 0x406716
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x406349
mov dword [esp + 0x5c], 0x4034b50
test bl, bl
je 0x406724
mov bl, 0x14
mov byte [esp + 0x60], bl
movzx eax, cx
mov byte [esp + 0x62], cl
mov byte [esp + 0x63], ah
mov eax, dword [esp + 0x24]
mov byte [esp + 0x64], al
mov dword [esp + 0x65], 0
mov dword [esp + 0x69], 0
mov dword [esp + 0x6d], 0
mov dword [esp + 0x71], 0
mov byte [esp + 0x75], 0
mov ebx, dword [esp + 0x10]
mov byte [esp + 0x76], bl
mov byte [esp + 0x77], bh
mov eax, dword [ebp + 0x38]
mov byte [esp + 0x78], al
mov byte [esp + 0x79], ah
lea eax, [esp + 0x5c]
push 0x1e
push eax
push esi
mov edi, dword [esp + 0x14]
push edi
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 0x40691f
add edi, 0x1e
mov eax, dword [esp]
adc eax, 0
push ebx
push dword [ebp + 0xc]
mov dword [esp + 8], eax
push eax
push edi
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x406912
add edi, ebx
adc dword [esp], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
jmp 0x40690b
lea eax, [esp + 0x30]
mov ecx, 0xfffffffe
cmp ecx, edi
mov ecx, 0
sbb ecx, dword [esp + 0x14]
jb 0x4067f9
mov esi, 0
jmp 0x4067fd
lea esi, [esp + 0x28]
jae 0x406803
lea edx, [esp + 0x38]
lea ecx, [esp + 0xa0]
mov dword [esp + 0xc], ecx
push eax
push esi
call fcn.00406e10
add esp, 8
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edi, edx
mov dword [esp + 0x14], eax
mov edx, dword [ebp + 0x38]
add edx, eax
mov dword [esp + 0x5c], 0x4034b50
test bl, bl
je 0x406839
mov bl, 0x14
mov byte [esp + 0x60], bl
mov byte [esp + 0x61], 0
movzx ebx, word [esp + 0x88]
mov byte [esp + 0x62], bl
mov byte [esp + 0x63], bh
mov ebx, dword [esp + 0x24]
mov byte [esp + 0x64], bl
mov dword [esp + 0x65], 0
mov dword [esp + 0x69], 0
mov dword [esp + 0x6d], 0
mov dword [esp + 0x71], 0
mov byte [esp + 0x75], 0
mov ebx, dword [esp + 0x10]
mov byte [esp + 0x76], bl
mov byte [esp + 0x77], bh
mov byte [esp + 0x78], dl
mov byte [esp + 0x79], dh
lea edx, [esp + 0x5c]
push 0x1e
push edx
push ecx
push edi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x40691f
mov edi, dword [esp + 8]
add edi, 0x1e
mov eax, dword [esp]
adc eax, 0
push ebx
push dword [ebp + 0xc]
mov dword [esp + 8], eax
push eax
push edi
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x406912
add edi, ebx
mov edx, dword [esp]
adc edx, 0
cmp dword [esp + 0xc], 0
mov ecx, edi
mov dword [esp], edx
je 0x40692b
lea eax, [esp + 0xa0]
mov ebx, dword [esp + 0x14]
push ebx
push eax
push edx
push ecx
push dword [esi + 0x44]
mov edi, ecx
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x40691f
mov ecx, ebx
add edi, ebx
adc dword [esp], 0
mov eax, dword [ebp + 0x38]
mov ecx, edi
jmp 0x406936
push dword [esp + 4]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x406349
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x38]
test eax, eax
mov dword [esp + 8], ecx
je 0x406963
push eax
push dword [ebp + 0x34]
mov ebx, dword [esp + 8]
push ebx
push ecx
push dword [esi + 0x44]
mov edi, eax
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x40691f
mov ecx, edi
add dword [esp + 8], edi
adc ebx, 0
mov dword [esp], ebx
cmp byte [esp + 0x20], 0
je 0x4069a9
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 8]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x406b5c
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
add dword [esp + 8], eax
adc dword [esp], 0
jmp 0x406a5c
cmp dword [ebp + 0x14], 0
je 0x406a5c
mov eax, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [esp]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, 4
setb al
shl eax, 0xe
or eax, dword [ecx*4 + 0x43784c]
test ecx, ecx
jne 0x4069f8
or eax, 0x80000
lea ecx, [esp + 0x40]
push eax
push ecx
push 0x406e80
mov esi, dword [esp + 0x10]
push esi
call fcn.00405600
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.004041e0
add esp, 0x18
cmp eax, 1
jne 0x406b71
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
push dword [esp + 4]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov esi, eax
mov dword [esp + 0x1c], ecx
or eax, ecx
je 0x406b68
mov dword [esp + 0x40], 0x8074b50
mov ecx, dword [esp + 0x8c]
mov byte [esp + 0x44], cl
mov byte [esp + 0x45], ch
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x46], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x47], al
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0xc], 0
je 0x406b8d
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bh
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x4a], al
mov eax, ecx
shr eax, 0x10
shr ebx, 0x18
mov byte [esp + 0x4b], bl
mov ebx, ecx
shr ebx, 0x18
mov byte [esp + 0x4c], cl
mov byte [esp + 0x4d], ch
mov byte [esp + 0x4e], al
mov byte [esp + 0x4f], bl
mov ecx, esi
mov byte [esp + 0x50], cl
mov byte [esp + 0x51], ch
mov eax, esi
shr eax, 0x10
mov byte [esp + 0x52], al
mov eax, esi
shr eax, 0x18
mov byte [esp + 0x53], al
mov dword [esp + 0x84], 0x38
mov dword [esp + 0x98], 0x30
mov ecx, 0x28
mov dword [esp + 0x20], 0x18
mov dword [esp + 4], 0x17
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x1b], al
mov dword [esp + 0x7c], 0x16
mov dword [esp + 0x94], 0x15
mov edi, 0x14
jmp 0x406be2
push dword [esp + 4]
mov esi, dword [ebp + 8]
jmp 0x406916
xor eax, eax
xor ecx, ecx
jmp 0x406c84
push dword [esp + 4]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x406349
test ecx, ecx
jne 0x406707
mov dword [esp + 0x48], ebx
mov dword [esp + 0x84], 0x18
mov dword [esp + 0x98], 0x10
mov ecx, 8
mov dword [esp + 4], 0xf
mov dword [esp + 0x7c], 0xe
mov eax, esi
mov byte [esp + 0x1b], al
mov dword [esp + 0x94], 0xd
mov edi, 0xc
mov dword [esp + 0x20], 0x10
mov ebx, esi
mov eax, dword [esp + 0x1c]
shrd ebx, eax, cl
shr eax, cl
movzx edx, byte [esp + 0x1b]
mov byte [esp + edi + 0x40], dl
test cl, 0x20
jne 0x406bfd
mov eax, ebx
mov ebx, esi
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x1c]
shrd ebx, edx, cl
mov edi, dword [esp + 0x94]
mov byte [esp + edi + 0x40], al
mov eax, edx
shr eax, cl
test cl, 0x20
jne 0x406c23
mov eax, ebx
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x1c]
shrd esi, edx, cl
mov edi, dword [esp + 0x7c]
mov byte [esp + edi + 0x40], al
shr edx, cl
test cl, 0x20
jne 0x406c42
mov edx, esi
mov eax, dword [esp + 4]
mov byte [esp + eax + 0x40], dl
lea eax, [esp + 0x40]
mov esi, dword [esp + 0x20]
push esi
push eax
push dword [esp + 8]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x406349
mov eax, dword [esp + 0x20]
add dword [esp + 8], eax
adc dword [esp], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0xc], 0
je 0x406ce7
xor edx, edx
mov esi, 0xfffffffe
cmp esi, dword [esp + 0x30]
mov esi, 0
sbb esi, dword [esp + 0x34]
jb 0x406ca5
xor edi, edi
jmp 0x406ca9
lea edi, [esp + 0x30]
mov esi, 0xfffffffe
cmp esi, eax
mov eax, 0
sbb eax, ecx
jb 0x406cc0
mov eax, 0
jmp 0x406cc4
lea eax, [esp + 0x28]
jae 0x406cca
lea edx, [esp + 0x38]
lea ecx, [esp + 0xa0]
push edi
push eax
call fcn.00406e10
add esp, 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
movzx ebx, word [esp + 0x88]
movzx esi, word [esp + 0x24]
movzx edx, word [esp + 0x14]
movzx edi, word [esp + 0x10]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x88]
push dword [esp + 0x40]
push dword [esp + 0x40]
push 0
push 0
push ebx
push esi
push dword [esp + 0xb0]
push dword [esp + 0x54]
push dword [esp + 0x54]
push ecx
push eax
push dword [esp + 0xc8]
push dword [ebp + 0x18]
push edx
push dword [esp + 0x50]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406ed0
add esp, 0x54
test eax, eax
je 0x406349
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov ecx, dword [esp]
mov dword [eax + 4], ecx
mov ebx, 1
jmp 0x40634b