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

Disassembly:
sub esp, 0x80
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
xor ebx, ebx
push esi
push edi
push 0x18
lea esi, [ebp + 0x37e864]
pop ecx
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp + 0x10]
movsx eax, byte [esi]
mov edi, esi
add eax, 0xfffffff5
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edi
cmp eax, 0x12
ja case.0x406d10.12
jmp dword [eax*4 + 0x40766a]
push ebp
push 8
lea eax, [esp + 0x18]
mov byte [esi], 0xb
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
cmp dword [esp + 0x10], 0x17
jne 0x406d40
mov byte [esi], 1
push 4
jmp 0x406f72
cmp dword [esp + 0x10], 0x31
jne 0x406f70
mov dword [ebp + 0x2c], ebx
push ebp
push 8
lea eax, [esp + 0x18]
mov byte [esi], 0xd
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
mov eax, dword [ebp + 0x2c]
shl eax, 8
or eax, dword [esp + 0x10]
mov dword [ebp + 0x2c], eax
push ebp
push 8
lea eax, [esp + 0x18]
mov byte [esi], 0xe
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
mov eax, dword [ebp + 0x2c]
shl eax, 8
or eax, dword [esp + 0x10]
mov dword [ebp + 0x2c], eax
push ebp
push 8
lea eax, [esp + 0x18]
mov byte [esi], 0xf
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
mov eax, dword [ebp + 0x2c]
shl eax, 8
or eax, dword [esp + 0x10]
mov dword [ebp + 0x2c], eax
jl 0x406f70
cmp eax, 0xdbbaa
jg 0x406f70
mov edi, ebx
jmp 0x406dfe
mov edi, dword [esp + 0x30]
push ebp
push 1
lea eax, [esp + 0x18]
mov byte [esi], 0x10
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
cmp dword [esp + 0x10], 1
sete al
mov byte [edi + ebp + 0x36fbbc], al
inc edi
mov dword [esp + 0x30], edi
cmp edi, 0x10
jl 0x406dd6
push 0x100
lea eax, [ebp + 0x36fabc]
push ebx
push eax
call fcn.0040788d
add esp, 0xc
mov esi, ebx
jmp 0x406e62
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
push ebp
push 1
lea eax, [esp + 0x18]
mov byte [ebp + 0x10], 0x11
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
cmp dword [esp + 0x10], 1
jne 0x406e57
mov eax, esi
shl eax, 4
add eax, edi
mov byte [eax + ebp + 0x36fabc], 1
inc edi
mov dword [esp + 0x34], edi
cmp edi, 0x10
jl 0x406e28
inc esi
mov dword [esp + 0x30], esi
cmp esi, 0x10
jge 0x406e78
cmp byte [esi + ebp + 0x36fbbc], bl
je 0x406e61
mov edi, ebx
jmp 0x406e58
mov dword [ebp + 0x36fab8], ebx
mov ecx, ebx
mov eax, dword [ebp + 0x36fab8]
cmp byte [ecx + ebp + 0x36fabc], bl
je 0x406ea2
mov byte [eax + ebp + 0x36fbcc], cl
inc dword [ebp + 0x36fab8]
mov eax, dword [ebp + 0x36fab8]
inc ecx
cmp ecx, 0x100
jl 0x406e80
test eax, eax
je 0x406f70
mov edi, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x3c], eax
push ebp
push 3
lea eax, [esp + 0x48]
mov byte [edi], 0x12
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
cmp dword [esp + 0x40], 2
jl 0x406f70
cmp dword [esp + 0x40], 6
jg 0x406f70
push ebp
push 0xf
lea eax, [esp + 0x4c]
mov byte [edi], 0x13
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
mov edx, dword [esp + 0x44]
cmp edx, 1
jl 0x406f70
mov esi, dword [esp + 0x14]
mov edi, ebx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
jmp 0x406f57
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], eax
push ebp
push 1
lea eax, [esp + 0x18]
mov byte [esi], 0x14
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x10], ebx
jne 0x406f65
mov edx, dword [esp + 0x44]
mov byte [edi + ebp + 0x37535e], al
inc edi
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], edi
cmp edi, edx
jge 0x406f91
mov dword [esp + 0x34], ebx
jmp 0x406f29
inc eax
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x40]
jl 0x406f29
push 0xfffffffffffffffc
pop ebx
push 0x18
pop ecx
lea edi, [ebp + 0x37e864]
mov eax, ebx
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
mov cl, bl
test eax, eax
jle 0x406fa6
mov edi, ebx
mov byte [esp + edi + 0x28], cl
inc cl
movzx edi, cl
cmp edi, eax
jl 0x406f99
mov ecx, ebx
mov dword [esp + 0x30], ecx
test edx, edx
jle 0x406fef
mov ebx, dword [esp + 0x44]
mov dl, byte [ecx + ebp + 0x37535e]
lea edi, [esp + 0x28]
movzx eax, dl
add edi, eax
mov ah, byte [edi]
test dl, dl
je 0x406fd5
mov al, byte [edi - 1]
mov byte [edi], al
dec edi
sub dl, 1
jne 0x406fca
mov byte [ecx + ebp + 0x370d0c], ah
inc ecx
mov byte [esp + 0x28], ah
cmp ecx, ebx
jl 0x406fb4
mov eax, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x30], ecx
mov edi, ebx
jmp 0x40708e
mov edi, dword [esp + 0x38]
jmp 0x407045
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push ebp
push 1
push eax
mov byte [esi], 0x17
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], esi
jne 0x40702e
inc eax
jmp 0x40702f
dec eax
mov dword [esp + 0x68], eax
cmp eax, 1
jl 0x406f70
cmp eax, 0x14
jg 0x406f70
push ebp
push 1
lea eax, [esp + 0x18]
mov byte [esi], 0x16
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
cmp dword [esp + 0x10], eax
jne 0x407000
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x68]
imul eax, edi, 0x102
add eax, edx
inc edx
mov byte [eax + ebp + 0x3799b0], cl
mov dword [esp + 0x30], edx
cmp edx, dword [esp + 0x3c]
jl 0x4070b6
mov eax, dword [esp + 0x40]
inc edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], edi
cmp edi, eax
jge 0x4070bf
push ebp
push 5
lea eax, [esp + 0x70]
mov byte [esi], 0x15
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
mov edi, dword [esp + 0x38]
mov edx, ebx
jmp 0x40707b
mov eax, dword [esp + 0x68]
jmp 0x407033
mov dword [esp + 0x38], ebx
test eax, eax
jle 0x407170
lea ecx, [ebp + 0x37e84c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ecx
lea esi, [ebp + 0x3799b0]
lea ecx, [ebp + 0x37b7ec]
mov dword [esp + 0x20], ecx
mov ebp, ecx
mov edx, dword [esp + 0x3c]
mov eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ebx
push 0x20
pop edi
test edx, edx
jle 0x407129
mov ebp, ebx
mov ecx, edi
mov eax, ebx
movzx edi, byte [esi + ebp]
cmp edi, eax
mov ebx, edi
cmovle ebx, eax
cmp edi, ecx
cmovge edi, ecx
inc ebp
cmp ebp, edx
jl 0x407102
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
xor ebx, ebx
mov eax, dword [esp + 0x10]
push edx
push eax
push edi
push esi
lea eax, [ebp + 0x1830]
push eax
push ebp
lea eax, [ebp - 0x1830]
push eax
call fcn.00407794
mov eax, dword [esp + 0x24]
add ebp, 0x408
add esi, 0x102
mov dword [esp + 0x20], ebp
mov dword [eax], edi
add eax, 4
sub dword [esp + 0x18], 1
mov dword [esp + 0x24], eax
jne 0x4070eb
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0x1c]
mov eax, dword [ebp + 0x36fab8]
lea edi, [ebp + 0x30]
or dword [esp + 0x4c], 0xffffffff
inc eax
mov edx, 0x100
mov dword [esp + 0x48], eax
mov ecx, edx
mov dword [esp + 0x30], edx
xor eax, eax
mov dword [esp + 0x58], 0xdbba0
rep stosd dword es:[edi], eax
push 0xf
pop edi
lea eax, [ebp + 0x370d08]
mov dword [esp + 0x50], ebx
push edi
mov edx, 0xfff
mov dword [esp + 0x24], eax
pop ecx
push 0xf
pop ebx
shl cl, 4
mov al, bl
add al, cl
mov byte [edx + ebp + 0x36fccc], al
dec edx
sub ebx, 1
jns 0x4071b8
mov ecx, dword [esp + 0x20]
lea eax, [edx + 1]
sub dword [esp + 0x20], 4
dec edi
mov dword [ecx], eax
mov ecx, edi
test edi, edi
jns 0x4071b2
push ebp
lea eax, [esp + 0x34]
xor ebx, ebx
push eax
mov dword [esp + 0x64], ebx
call fcn.0040771e
test eax, eax
jne 0x406f70
push ebp
push dword [esp + 0x74]
lea eax, [esp + 0x7c]
mov byte [esi], 0x18
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
mov ecx, dword [esp + 0x74]
jmp 0x407241
push ebp
push 1
lea eax, [esp + 0x80]
mov byte [esi], 0x19
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
mov eax, dword [esp + 0x74]
lea ecx, [eax + eax]
or ecx, dword [esp + 0x78]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x70]
cmp edx, 0x14
jg 0x406f70
mov eax, dword [esp + 0x84]
cmp ecx, dword [eax + edx*4]
jle 0x407261
inc edx
mov dword [esp + 0x70], edx
jmp case.0x406d10.25
mov eax, dword [esp + 0x88]
sub ecx, dword [eax + edx*4]
js 0x406f70
cmp ecx, 0x102
jge 0x406f70
mov eax, dword [esp + 0x8c]
mov esi, dword [esp + 0x5c]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x54], ecx
jmp 0x40736d
push ebp
push 1
lea eax, [esp + 0x80]
mov byte [esi], 0x1b
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
mov eax, dword [esp + 0x74]
lea ecx, [eax + eax]
or ecx, dword [esp + 0x78]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x70]
cmp edx, 0x14
jg 0x406f70
mov eax, dword [esp + 0x84]
cmp ecx, dword [eax + edx*4]
jg 0x4075aa
mov eax, dword [esp + 0x88]
sub ecx, dword [eax + edx*4]
js 0x406f70
cmp ecx, 0x102
jge 0x406f70
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x5c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x54], ecx
test ecx, ecx
je 0x40755b
cmp ecx, 1
je 0x407561
lea edx, [eax + 1]
mov eax, dword [ebp + 0x370ccc]
mov dword [esp + 0x60], edx
movzx eax, byte [eax + ebp + 0x36fccc]
movzx edi, byte [eax + ebp + 0x36fbcc]
add dword [ebp + edi*4 + 0x30], edx
test edx, edx
jle 0x40736d
lea eax, [esi*4 + 0xc38]
add eax, ebp
cmp esi, dword [esp + 0x58]
jge 0x406f70
inc esi
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x5c], esi
dec edx
mov dword [esp + 0x60], edx
test edx, edx
jg 0x407350
cmp ecx, dword [esp + 0x48]
je 0x4075b4
test ecx, ecx
je 0x407544
cmp ecx, 1
je 0x407544
cmp esi, dword [esp + 0x58]
jge 0x406f70
dec ecx
cmp ecx, 0x10
jae 0x4073d7
mov edx, dword [ebp + 0x370ccc]
lea eax, [edx + ecx]
movzx eax, byte [eax + ebp + 0x36fccc]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x4073cb
lea edi, [edx + ebp]
mov al, byte [edi + ecx + 0x36fccb]
mov byte [edi + ecx + 0x36fccc], al
sub ecx, 1
jne 0x4073b4
mov eax, dword [esp + 0x10]
mov byte [edx + ebp + 0x36fccc], al
jmp 0x40749c
mov edi, ecx
and ecx, 0xf
shr edi, 4
push 0
lea edx, [edi*4 + 0x370ccc]
add edx, ebp
mov eax, dword [edx]
add ecx, eax
movzx ebx, byte [ecx + ebp + 0x36fccc]
mov dword [esp + 0x14], ebx
pop ebx
jmp 0x40740e
mov al, byte [ecx + ebp + 0x36fccb]
mov byte [ecx + ebp + 0x36fccc], al
dec ecx
mov eax, dword [edx]
cmp ecx, eax
jg 0x4073fd
inc eax
mov dword [edx], eax
test edi, edi
je 0x407436
dec dword [edx]
dec edi
mov eax, dword [edx - 4]
mov ecx, dword [edx]
lea edx, [edx - 4]
mov al, byte [eax + ebp + 0x36fcdb]
mov byte [ecx + ebp + 0x36fccc], al
test edi, edi
jg 0x407419
dec dword [ebp + 0x370ccc]
mov eax, dword [ebp + 0x370ccc]
mov ecx, dword [esp + 0x10]
mov byte [eax + ebp + 0x36fccc], cl
cmp dword [ebp + 0x370ccc], ebx
jne 0x407498
mov edx, 0xfff
mov dword [esp + 0x24], 0xf
lea ecx, [ebp + 0x370d08]
push 0xf
pop edi
mov eax, dword [ecx]
add eax, edi
mov al, byte [eax + ebp + 0x36fccc]
mov byte [edx + ebp + 0x36fccc], al
dec edx
sub edi, 1
jns 0x40746b
lea eax, [edx + 1]
mov dword [ecx], eax
sub ecx, 4
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
test eax, eax
jns 0x407468
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + ebp + 0x36fbcc]
push ebp
inc dword [ebp + eax*4 + 0x30]
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + ebp + 0x36fbcc]
mov dword [ebp + esi*4 + 0xc38], eax
lea eax, [esp + 0x34]
inc esi
push eax
mov dword [esp + 0x64], esi
call fcn.0040771e
test eax, eax
jne 0x406f70
mov edi, dword [esp + 0x14]
push ebp
push dword [esp + 0x74]
lea eax, [esp + 0x7c]
mov byte [ebp + 0x10], 0x1c
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
cmp edx, 0x14
jg 0x406f70
mov eax, dword [esp + 0x84]
cmp ecx, dword [eax + edx*4]
jle 0x407261
inc edx
mov dword [esp + 0x70], edx
push ebp
push 1
lea eax, [esp + 0x80]
mov byte [edi], 0x1d
push eax
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
mov eax, dword [esp + 0x74]
lea ecx, [eax + eax]
or ecx, dword [esp + 0x78]
mov dword [esp + 0x74], ecx
jmp 0x4074f6
mov edi, dword [esp + 0x14]
or eax, 0xffffffff
xor edx, edx
mov dword [esp + 0x60], eax
inc edx
mov dword [esp + 0x64], edx
jmp 0x407311
add eax, edx
mov dword [esp + 0x60], eax
add edx, edx
mov dword [esp + 0x64], edx
cmp ecx, 1
jne 0x407572
add eax, edx
mov dword [esp + 0x60], eax
push ebp
lea eax, [esp + 0x34]
push eax
call fcn.0040771e
test eax, eax
jne 0x406f70
push ebp
push dword [esp + 0x74]
lea eax, [esp + 0x7c]
mov byte [edi], 0x1a
push eax
mov esi, edi
call fcn.004076b6
test eax, eax
jne case.0x406d10.12
mov ecx, dword [esp + 0x74]
jmp 0x4072be
inc edx
mov dword [esp + 0x70], edx
jmp case.0x406d10.27
cmp dword [ebp + 0x2c], 0
jl 0x406f70
cmp dword [ebp + 0x2c], esi
jge 0x406f70
mov dword [ebp + 0x14], ebx
lea ecx, [ebp + 0x30]
mov byte [ebp + 0x11], bl
mov byte [ebp + 0x10], 2
mov dword [ebp + 0x430], ebx
mov ebp, 0x100
mov eax, dword [ecx + 0x400]
add eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [ecx + 0x400], eax
sub ebp, 1
jne 0x4075df
mov ebp, dword [esp + 0x94]
mov edi, ebx
mov dword [esp + 0x30], edi
test esi, esi
jle 0x407637
lea ebx, [ebp + 0xc38]
movzx edx, byte [ebx]
mov eax, edi
shl eax, 8
lea ebx, [ebx + 4]
mov ecx, dword [ebp + edx*4 + 0x430]
or dword [ebp + ecx*4 + 0xc38], eax
inc dword [ebp + edx*4 + 0x430]
inc edi
cmp edi, esi
jl 0x40760c
mov dword [esp + 0x30], edi
xor ebx, ebx
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + eax*4 + 0xc38]
shr ecx, 8
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x18], ebx
mov ecx, dword [ebp + ecx*4 + 0xc38]
movzx eax, cl
shr ecx, 8
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x18], 1
jmp case.0x406d10.12