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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0xdc
mov ebp, dword [eax]
mov dword [esp + 0x30], eax
mov eax, ebp
mov dword [esp + 0x50], ebp
movzx eax, al
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xf0]
mov dword [eax + 0x270], 0
lea esi, [eax + 0x270]
mov dword [esi + 0x68], 0
mov eax, dword [esp + 0xf0]
mov ecx, esi
add eax, 0x274
mov edi, eax
mov dword [esp + 0x10], eax
xor eax, eax
and edi, 0xfffffffc
sub ecx, edi
add ecx, 0x6c
shr ecx, 2
rep stosd dword es:[edi], eax
mov eax, ebp
cmp al, 0xc
ja 0x407474
mov dword [esp + 4], edx
lea edx, [esp + 0x64]
mov eax, dword [esp + 0xf0]
lea ecx, [esp + 0x60]
mov dword [esp], edx
mov edx, esi
mov dword [esp + 8], ebx
add eax, 0x4dc
call fcn.00406d30
mov dword [esp + 0x48], eax
cmp eax, 0xffffff88
ja 0x407465
mov ebp, dword [esp + 0x64]
cmp dword [esp + 0x38], ebp
jb 0x407474
mov ebx, dword [esi + ebp*4]
lea eax, [ebp + 1]
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x4074c6
mov edx, dword [esp + 0xf0]
mov eax, ebp
lea esi, [esi]
lea esi, [esi]
mov ebx, eax
lea eax, [eax - 1]
mov ecx, dword [edx + ebx*4 + 0x26c]
test ecx, ecx
je 0x406fd0
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
sub edx, ebp
sub edi, eax
add eax, edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], eax
cmp ebx, 1
jbe 0x4074dd
mov eax, dword [esp + 0x10]
lea ecx, [esi + ebx*4]
xor edx, edx
lea esi, [esi]
nop
mov esi, edx
add eax, 4
add edx, dword [eax - 4]
mov dword [eax + 0x34], esi
cmp ecx, eax
jne 0x407010
mov dword [esp + 0x4c], edx
mov edi, edx
mov eax, dword [esp + 0xf0]
add eax, 0x2dc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xf0]
mov dword [eax + 0x2a8], edi
mov edi, dword [esp + 0x60]
xor eax, eax
test edi, edi
je 0x4070a4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0xf0]
nop
movzx ecx, byte [edi + eax + 0x4dc]
lea esi, [edi + ecx*4 + 0x2a8]
mov ebx, ecx
mov ecx, dword [esi]
lea ebp, [ecx + 1]
mov dword [esi], ebp
movzx esi, word [0x417fc0]
mov edx, esi
mov dl, al
add eax, 1
mov esi, edx
mov edx, esi
mov esi, dword [esp + 0x18]
mov dh, bl
mov ebx, dword [esp + 0x10]
mov word [ebx + ecx*2], dx
cmp eax, esi
jne 0x407060
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0xf0]
mov dword [eax + 0x2a8], 0
sub ecx, ebp
lea edi, [ecx - 1]
cmp ebx, 1
jbe 0x407131
mov edx, eax
lea eax, [ecx*4]
add edi, ebx
sub edx, eax
xor eax, eax
lea esi, [esi]
mov ebp, dword [edx + ecx*4 + 0x274]
mov esi, eax
mov dword [edx + ecx*4 + 4], esi
shl ebp, cl
add ecx, 1
add eax, ebp
cmp edi, ecx
jne 0x4070d8
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x34], edi
jae 0x407131
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0xf0]
mov ebp, edi
imul esi, ecx, 0x34
lea ebx, [eax + ebx*4]
lea edi, [eax + 4]
mov eax, edi
lea esi, [esi]
mov edx, dword [eax]
add eax, 4
shr edx, cl
mov dword [eax + esi - 4], edx
cmp ebx, eax
jne 0x407118
add ecx, 1
add esi, 0x34
cmp ecx, ebp
jne 0x407110
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x38]
sub eax, edi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 8]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xf0]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40744b
mov eax, edi
mov edi, dword [esp + 0x14]
sub eax, edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
add edi, edi
mov dword [esp + 0x28], eax
add eax, edi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x58], edi
add eax, 4
mov dword [esp + 0x5c], eax
lea esi, [esi]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x14]
movzx eax, byte [esi + 1]
movzx esi, byte [esi]
lea ebp, [eax + ebx]
mov word [esp + 0x18], si
mov edx, dword [esp + eax*4 + 0x68]
sub edi, eax
mov esi, 1
mov ecx, ebp
shl esi, cl
lea esi, [esi + edx]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x34]
cmp ebp, esi
jb 0x407490
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0xf0]
lea ebx, [esi + edi]
mov esi, 1
test ebx, ebx
cmovg esi, ebx
mov ecx, dword [ecx + esi*4 + 0x2a4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
lea edx, [ecx + edx*4 + 4]
imul ecx, edi, 0x34
add ecx, dword [esp + 0xf0]
mov esi, dword [ecx]
mov dword [esp + 0x9c], esi
mov esi, dword [ecx + 4]
mov dword [esp + 0xa0], esi
mov esi, dword [ecx + 8]
mov dword [esp + 0xa4], esi
mov esi, dword [ecx + 0xc]
mov dword [esp + 0xa8], esi
mov esi, dword [ecx + 0x10]
mov dword [esp + 0xac], esi
mov esi, dword [ecx + 0x14]
mov dword [esp + 0xb0], esi
mov esi, dword [ecx + 0x18]
mov dword [esp + 0xb4], esi
mov esi, dword [ecx + 0x1c]
mov dword [esp + 0xb8], esi
mov esi, dword [ecx + 0x20]
mov dword [esp + 0xbc], esi
mov esi, dword [ecx + 0x24]
mov dword [esp + 0xc0], esi
mov esi, dword [ecx + 0x28]
mov dword [esp + 0xc4], esi
mov esi, dword [ecx + 0x2c]
mov ecx, dword [ecx + 0x30]
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], ecx
cmp ebx, 1
jle 0x40737d
mov esi, dword [esp + 0x1c]
mov ebx, edi
mov esi, dword [esp + esi*4 + 0x9c]
test esi, esi
je 0x40737d
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 0x18]
mov ecx, edx
lea esi, [edx + esi*4]
lea esi, [esi]
nop
mov word [ecx], ax
add ecx, 4
mov byte [ecx - 2], bl
mov byte [ecx - 1], 1
cmp esi, ecx
jne 0x407368
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x10], ebx
je 0x407430
mov ebx, edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x44], eax
mov byte [esp + 0x20], bl
sub ebp, edi
mov edi, dword [esp + 0xf0]
mov dword [esp + 0x24], ebp
lea esi, [edi + esi*2]
mov edi, dword [esp + 0x58]
add edi, dword [esp + 0xf0]
mov dword [esp + 0x1c], edi
lea esi, [esi]
movzx edi, byte [esi + 0x2dd]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
lea ecx, [edi + ebx]
mov ebx, 1
mov eax, dword [esp + edi*4 + 0x9c]
shl ebx, cl
movzx ecx, byte [esi + 0x2dc]
sub ebp, edi
add ebx, eax
shl ecx, 8
add cx, word [esp + 0x18]
mov word [esp + 0x10], cx
movzx ecx, byte [esp + 0x20]
add ebp, ecx
nop
movzx ecx, word [esp + 0x10]
add eax, 1
mov byte [edx + eax*4 - 1], 2
mov word [edx + eax*4 - 4], cx
mov ecx, ebp
mov byte [edx + eax*4 - 2], cl
cmp eax, ebx
jb 0x407400
mov dword [esp + edi*4 + 0x9c], ebx
add esi, 2
cmp dword [esp + 0x1c], esi
jne 0x4073c0
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x2c]
add dword [esp + 0x28], 2
mov dword [esp + eax*4 + 0x68], edi
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], eax
jne 0x407248
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x30]
shl edx, 0x10
and eax, 0xff00ffff
or eax, edx
mov ah, 1
mov dword [edi], eax
mov eax, dword [esp + 0x48]
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x48], 0xffffffd4
mov eax, dword [esp + 0x48]
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, edi
mov edi, dword [esp + 0x2c]
cmp edx, edi
jae 0x407430
mov esi, dword [esp + 0x30]
lea edx, [esi + edx*4 + 4]
mov esi, dword [esp + 0x5c]
lea ebx, [esi + edi*4]
movzx esi, word [esp + 0x18]
nop
mov word [edx], si
add edx, 4
mov byte [edx - 2], cl
mov byte [edx - 1], 1
cmp ebx, edx
jne 0x4074b0
jmp 0x407430
mov ebx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], eax
jmp 0x406ff6
mov dword [esp + 0x4c], 0
mov edi, dword [esp + 0x4c]
jmp 0x407025