Function at 0x405e30
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 edi, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], esi
mov ebx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x20], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov ecx, dword [ebp + 0x20]
mov eax, 6
test ecx, ecx
js 0x405e7f
mov eax, ecx
mov dword [esp + 0x10], ebx
mov ecx, esi
or ecx, edi
je 0x405e93
mov ecx, eax
and ecx, 0x400
jmp 0x405ea7
mov ebx, eax
and ebx, 0x400
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x405ead
test ebx, ebx
jne 0x405ead
mov ebx, ecx
mov cx, 8
test eax, 0x10000
jne 0x405ebd
movzx ecx, cx
or ecx, 0x800
mov dword [esp + 0x84], ecx
mov ecx, eax
and ecx, 0xf
mov dword [esp + 0x18], ecx
sete byte [esp + 0x1c]
test ebx, ebx
setne cl
mov edx, dword [edx + 0x48]
mov dword [esp + 0xc], edx
test edx, edx
je 0x405f81
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 2
jne 0x405f81
cmp dword [ebp + 0x14], 0
setne dl
cmp dword [ebp + 0x10], 0
sete ch
cmp dword [ebp + 0xc], 0
je 0x405f81
and ch, dl
jne 0x405f81
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
sete ch
test ch, dl
jne 0x405f81
cmp dword [esp + 0x18], 0xb
jae 0x405f81
mov dword [esp + 8], ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [edx + 0x34]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov dword [esp], ebx
test ebx, ebx
je 0x405f4e
cmp edx, 0xffffffff
jne 0x405f73
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x405f8b
test edi, edi
jne 0x405f61
mov dword [esp], 0
cmp edx, 0xffff
jne 0x405f73
mov edx, dword [esp + 0xc]
mov dword [edx + 0x34], 1
mov dword [esp], 1
mov edx, esi
or edx, edi
mov ebx, dword [esp + 8]
je 0x405f95
test ebx, ebx
jne 0x405f95
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0x2f
mov edx, dword [ebp + 8]
jne 0x405fa9
mov dword [edx + 0x1c], 0x19
jmp 0x405f8b
or byte [esp + 0x1c], cl
mov ecx, eax
xor ecx, 0xfffffbff
or eax, 0x400
test eax, ecx
je 0x405fca
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x8c], eax
jmp 0x406009
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push 0
call fcn.00403b40
add esp, 0xc
mov dword [esp + 0x8c], eax
xor edi, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov eax, 0
cmp esi, 4
setb cl
jb 0x406001
mov eax, dword [esp + 0x18]
or byte [esp + 0x1c], cl
mov dword [esp + 0x18], eax
push dword [ebp + 0xc]
call fcn.00409360
add esp, 4
cmp eax, 0x10000
jb 0x40602a
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x405f8b
mov dword [esp + 0x34], eax
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], 0
mov ebx, 0xfffffffe
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
mov edx, dword [ecx + 0x24]
or edx, eax
mov edx, 0
je 0x406069
lea edx, [ebx + eax]
inc edx
mov ecx, dword [ecx]
and ecx, edx
sub eax, ecx
and eax, edx
mov edx, eax
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 4]
xor edx, edx
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x34]
add eax, ecx
setb dl
mov dword [esp + 0x30], ebx
add eax, ebx
adc edx, 0
add eax, 0x4a
adc edx, 0
mov ebx, 0xfffffffe
cmp ebx, eax
sbb dword [esp + 0x88], edx
jae 0x4060b4
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x405f8b
cmp dword [esp], 0
jne 0x40611f
mov ebx, ecx
shr ebx, 0x1f
mov dword [esp], 0
mov edx, dword [esp + 0x80]
add edx, dword [ebp + 0x38]
mov ecx, 0
adc ecx, 0xffffffff
add edx, dword [ebp + 0x40]
adc ecx, 0
mov eax, dword [esp + 0x34]
add eax, eax
add edx, eax
adc ecx, ebx
add edx, dword [esp + 0x44]
adc ecx, 0
add edx, dword [esp + 0x30]
adc ecx, 0
mov eax, dword [ebp + 8]
add edx, dword [eax]
adc ecx, dword [eax + 4]
add edx, 0x72
adc ecx, 0
cmp ecx, 0xffffffff
mov ecx, dword [esp + 0x34]
je 0x40611f
mov eax, dword [esp + 0xc]
mov dword [eax + 0x34], 1
mov dword [esp], 1
xor edx, edx
test ecx, ecx
mov ebx, dword [esp + 8]
je 0x40614d
mov eax, dword [ebp + 0xc]
cmp byte [ecx + eax - 1], 0x2f
mov eax, dword [ebp + 8]
jne 0x40614d
cmp dword [ebp + 0x14], 0
jne 0x405f84
mov edx, 0x10
or esi, edi
jne 0x405f84
mov dword [esp + 0x88], edx
mov eax, dword [esp + 0x80]
add eax, ecx
add eax, 0x2e
mov edx, dword [esp]
test edx, edx
je 0x40616c
mov edx, 0x1c
mov ecx, edx
and ecx, eax
xor edx, eax
add edx, dword [esp + 0x30]
lea eax, [edx + ecx*2]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 8]
cmp edx, eax
mov ecx, dword [ebp + 0x14]
jae 0x4061c4
mov ecx, 1
test edx, edx
je 0x406192
mov ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x406192
push esi
push dword [edi + 0xc]
push dword [edi]
mov ebx, edi
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x406322
mov dword [ebx], eax
mov dword [ebx + 8], esi
mov ecx, dword [ebp + 0x14]
mov edi, ebx
mov ebx, dword [esp + 8]
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
inc eax
cmp edx, eax
jae 0x40620c
mov ecx, 1
test edx, edx
je 0x4061da
mov ecx, edx
mov esi, ecx
add ecx, ecx
cmp esi, eax
jb 0x4061da
push esi
push dword [edi + 0x1c]
push dword [edi + 0x10]
mov ebx, edi
mov edi, dword [ebp + 8]
push dword [edi + 0x34]
call dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x406322
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], esi
mov ecx, dword [ebp + 0x14]
mov ebx, dword [esp + 8]
test ecx, ecx
sete cl
xor eax, eax
or cl, byte [esp + 0x1c]
jne 0x406234
push 0x4df40
push 1
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x28]
add esp, 0xc
test eax, eax
je 0x40642a
mov dword [esp], eax
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0x10]
mov edx, edi
mov esi, dword [esp + 0x44]
push esi
push dword [esp + 8]
call fcn.00406a00
add esp, 8
test eax, eax
je 0x40632e
test ebx, ebx
setne dl
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add eax, esi
adc ecx, 0
mov dword [esp + 8], eax
mov dword [esp + 0x20], eax
add edi, esi
mov dword [esp + 0x10], edi
mov esi, dword [esp + 4]
adc esi, 0
mov dword [esp + 0x24], ecx
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 ebx, byte [esp + 0x1c]
xor bl, 1
or bl, dl
movzx edx, bl
shl edx, 3
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x34], 0
je 0x406342
mov dword [esp + 4], esi
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov eax, 0xfffffffe
cmp eax, edi
mov edx, 0
sbb edx, esi
jb 0x406439
xor edx, edx
cmp eax, dword [esp + 8]
sbb edx, ecx
jb 0x406439
xor eax, eax
mov esi, dword [esp + 8]
jmp 0x40648e
mov dword [edi + 0x1c], 0x10
jmp 0x405f8b
push dword [esp]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x405f8b
cmp dword [esp + 0x3c], 0
jne 0x40681c
test esi, esi
jne 0x40681c
mov dword [esp + 4], esi
mov dword [esp + 0x60], 0x4034b50
test bl, bl
je 0x406367
mov bl, 0x14
mov byte [esp + 0x64], bl
mov byte [esp + 0x65], 0
mov ebx, dword [esp + 0x84]
movzx edx, bx
mov byte [esp + 0x66], bl
mov byte [esp + 0x67], dh
mov edx, dword [esp + 0x30]
mov byte [esp + 0x68], dl
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 + 0x34]
mov byte [esp + 0x7a], bl
mov byte [esp + 0x7b], bh
mov edx, dword [ebp + 0x38]
mov byte [esp + 0x7c], dl
mov byte [esp + 0x7d], dh
lea edx, [esp + 0x60]
push 0x1e
push edx
push ecx
push dword [esp + 0x14]
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x406621
mov edi, dword [esp + 0x10]
add edi, 0x1e
mov eax, esi
mov esi, dword [esp + 4]
adc esi, 0
push ebx
push dword [ebp + 0xc]
push esi
push edi
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x406612
add edi, ebx
adc esi, 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov ebx, edi
jmp 0x406580
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x10
jmp 0x405f8b
xor edx, edx
cmp eax, dword [esp + 8]
mov eax, 0
sbb eax, ecx
jb 0x40644c
xor eax, eax
jmp 0x406450
lea eax, [esp + 0x20]
mov ecx, 0xfffffffe
cmp ecx, edi
mov ecx, 0
sbb ecx, esi
jb 0x406467
mov esi, 0
jmp 0x40646b
lea esi, [esp + 0x38]
jae 0x406471
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa0]
mov dword [esp + 0xc], ecx
push eax
push esi
call fcn.00406aa0
add esp, 8
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x38]
mov dword [esp + 8], eax
add edx, eax
mov dword [esp + 0x60], 0x4034b50
test bl, bl
je 0x4064a5
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 + 0x30]
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 + 0x34]
mov byte [esp + 0x7a], bl
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 esi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x406621
mov edi, dword [esp + 0x10]
add edi, 0x1e
mov eax, esi
mov esi, dword [esp + 4]
adc esi, 0
push ebx
push dword [ebp + 0xc]
push esi
push edi
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x406612
add edi, ebx
adc esi, 0
cmp dword [esp + 0xc], 0
mov ebx, edi
je 0x406578
lea eax, [esp + 0xa0]
mov edi, dword [esp + 8]
push edi
push eax
push esi
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4065b8
add ebx, edi
adc esi, 0
jmp 0x406580
mov dword [esp + 0xc], 0
mov edi, dword [ebp + 0x38]
test edi, edi
je 0x4065c7
push edi
push dword [ebp + 0x34]
push esi
push ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4065b8
mov eax, ebx
and eax, edi
mov ecx, eax
shr ecx, 0x1f
add eax, eax
xor ebx, edi
add ebx, eax
mov dword [esp + 0x10], ebx
adc esi, ecx
mov dword [esp + 4], esi
jmp 0x4065cf
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x405f8b
mov dword [esp + 4], esi
mov dword [esp + 0x10], ebx
cmp byte [esp + 0x1c], 0
je 0x40662d
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0xc]
push dword [esp + 0x1c]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x406612
mov eax, dword [ebp + 0x14]
add dword [esp + 0x10], eax
adc dword [esp + 4], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
jmp 0x406700
push dword [esp]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x405f8b
cmp dword [ebp + 0x14], 0
je 0x406700
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x18]
mov ecx, eax
cmp eax, 0xa
jl 0x40666e
mov ecx, 0xa
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, 4
setl al
shl eax, 0xe
or eax, dword [ecx*4 + 0x43ca58]
test edx, edx
jne 0x40669b
mov ecx, eax
xor ecx, 0x80000
add ecx, eax
and eax, 0xfff7ffff
sub ecx, eax
mov eax, ecx
lea ecx, [esp + 0x48]
push eax
push ecx
push 0x406b10
mov esi, dword [esp + 0xc]
push esi
call fcn.00405170
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.00403c00
add esp, 0x18
cmp eax, 1
jne 0x4067fd
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
push dword [esp]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, ecx
mov dword [esp + 0x18], eax
or ecx, eax
je 0x406913
mov dword [esp + 0x48], 0x8074b50
mov edx, dword [esp + 0x8c]
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 ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
cmp dword [esp + 0xc], 0
je 0x406818
mov byte [esp + 0x50], cl
mov byte [esp + 0x51], ch
mov ebx, ecx
shr ebx, 0x10
mov byte [esp + 0x52], bl
mov ebx, edx
shr ebx, 0x10
shr ecx, 0x18
mov byte [esp + 0x53], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x54], dl
mov byte [esp + 0x55], dh
mov byte [esp + 0x56], bl
mov byte [esp + 0x57], cl
mov edx, esi
mov byte [esp + 0x58], dl
mov byte [esp + 0x59], dh
mov ecx, esi
shr ecx, 0x10
mov byte [esp + 0x5a], cl
mov ecx, esi
shr ecx, 0x18
mov byte [esp + 0x5b], cl
mov dword [esp + 0x44], 0x38
mov dword [esp + 0x94], 0x30
mov ecx, 0x28
mov dword [esp + 0x1c], 0x18
mov dword [esp], 0x17
mov eax, dword [esp + 0x18]
mov edx, eax
mov byte [esp + 0x17], al
mov dword [esp + 0x98], 0x16
mov dword [esp + 0x90], 0x15
mov edi, 0x14
jmp 0x406877
push dword [esp]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x405f8b
test edx, edx
je 0x40682b
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x405f8b
mov dword [esp + 0x50], ecx
mov dword [esp + 0x44], 0x18
mov dword [esp + 0x94], 0x10
mov ecx, 8
mov dword [esp], 0xf
mov dword [esp + 0x98], 0xe
mov edx, esi
mov byte [esp + 0x17], dl
mov dword [esp + 0x90], 0xd
mov edi, 0xc
mov dword [esp + 0x1c], 0x10
mov edx, esi
mov ebx, dword [esp + 0x18]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x17]
mov byte [esp + edi + 0x48], al
test cl, 0x20
jne 0x406892
mov ebx, edx
mov edx, esi
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x18]
shrd edx, eax, cl
mov edi, dword [esp + 0x90]
mov byte [esp + edi + 0x48], bl
mov ebx, eax
shr ebx, cl
test cl, 0x20
jne 0x4068b8
mov ebx, edx
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
shrd esi, eax, cl
mov edx, esi
mov esi, dword [esp + 0x98]
mov byte [esp + esi + 0x48], bl
shr eax, cl
test cl, 0x20
jne 0x4068d9
mov eax, edx
mov ecx, dword [esp]
mov byte [esp + ecx + 0x48], al
lea eax, [esp + 0x48]
mov esi, dword [esp + 0x1c]
push esi
push eax
push dword [esp + 0xc]
push dword [esp + 0x1c]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x405f8b
mov eax, dword [esp + 0x1c]
add dword [esp + 0x10], eax
adc dword [esp + 4], 0
cmp dword [esp + 0xc], 0
je 0x406972
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x20]
mov eax, 0
sbb eax, dword [esp + 0x24]
jb 0x406934
xor eax, eax
jmp 0x406938
lea eax, [esp + 0x20]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x28]
mov ecx, 0
sbb ecx, dword [esp + 0x2c]
jb 0x406953
mov edi, 0
jmp 0x406957
lea edi, [esp + 0x38]
jae 0x40695d
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa0]
push eax
push edi
call fcn.00406aa0
add esp, 8
mov dword [esp + 8], eax
movzx ebx, word [esp + 0x84]
movzx esi, word [esp + 0x30]
movzx eax, word [esp + 8]
movzx edi, word [esp + 0x34]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x90]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0
push ebx
push esi
push dword [esp + 0xac]
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0xb4]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x4c]
push edi
call fcn.00406b60
add esp, 0x48
test eax, eax
je 0x405f8b
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 4]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x405f8d