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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dl, 0x48
lea esi, [esp + 0x50]
mov byte [esp + 0x7c], 0xd9
mov dword [esp + 0x74], 0x677a824d
mov dh, byte [esp + 0x7c]
mov bl, dh
add bl, 0x7d
mov byte [esp + 0x50], bl
mov bl, byte [esp + 0x7c]
xor bl, 0xb0
mov byte [esp + 0x51], bl
mov bl, dh
add bl, 0x11
mov byte [esp + 0x7d], bl
mov byte [esp + 0x52], 0x72
mov edi, dword [esp + 0x78]
mov byte [esp + 0x53], 0x74
mov byte [esp + 0x54], 0x75
mov byte [esp + 0x55], 0x61
mov byte [esp + 0x56], 0x6c
mov bl, byte [esp + 0x7c]
xor bl, 0x98
mov byte [esp + 0x57], bl
mov byte [esp + 0x58], 0x6c
mov bl, dh
add bl, bl
mov byte [esp + 0x7d], bl
mov byte [esp + 0x59], 0x6c
mov ebx, edi
xor ebx, 0x70bb9a2b
mov dword [esp + 0x78], ebx
sub dl, byte [esp + 0x7c]
mov byte [esp + 0x5a], dl
mov byte [esp + 0x5b], 0x63
mov byte [esp + 0x5c], 0
mov byte [esp + 0x7d], dh
mov byte [esp + 0x5d], 0xc4
mov dword [esp], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edi
mov byte [esp + 0x23], dh
call fcn.00404850
mov dl, byte [esp + 0x23]
xor dl, 0xff
mov byte [esp + 0x7d], dl
cmp eax, 0
mov dword [esp + 0x1c], eax
je 0x406b70
jmp 0x406ab8
mov dword [0x427aec], 0
jmp 0x406a68
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], eax
cmp dword [esp + 0x38], 0
je 0x406a45
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov esi, dword [esp + 0x4c]
mov edi, dword [eax + 0xc]
add esi, edi
mov edi, ecx
imul edi, edx
mov dword [esp + 0x18], eax
mov eax, ecx
mul ecx
add edx, edi
add edx, edi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
add eax, dword [ecx + 0x14]
mov edx, dword [esp + 0x44]
mov edx, dword [edx + 0x10]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00404790
mov eax, dword [esp + 0x38]
add eax, 1
mov ecx, dword [esp + 0x30]
mov bx, word [ecx]
mov ecx, dword [esp + 0x44]
add ecx, 0x28
movzx edx, bx
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], ecx
cmp eax, edx
jb 0x40697e
mov eax, dword [esp + 0x24]
imul ecx, eax, 0x28e7997a
mov edx, dword [esp + 0x4c]
add edx, 0xffc00000
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x1c], esi
mov dword [ecx + 0x44], edx
jmp 0x406a68
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00404790
jmp 0x406999
lea esp, [ebp - 0xc]
pop ebx
pop edi
pop esi
pop ebp
ret
mov ax, word [esp + 0x7e]
and ax, word [esp + 0x7e]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x74]
add edx, 0x98857dcb
mov si, word [ecx + 0x14]
mov word [esp + 0x7e], ax
movzx ecx, si
mov edi, dword [esp + 0x3c]
add edi, edx
add edi, ecx
mov ecx, dword [esp + 0x3c]
add ecx, 0x54
mov dword [esp + 0x70], ecx
mov dword [esp + 0x34], 0
mov dword [esp + 0x40], edi
jmp 0x40697e
xor eax, eax
mov ecx, 0x40
mov edx, dword [esp + 0x74]
mov esi, dword [0x427af0]
add edx, 0x9885ddb3
mov dword [esp], 0
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0x40
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
call edx
sub esp, 0x10
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
add eax, 0x13f4
mov dword [0x427aec], eax
cmp dword [esp + 0x4c], 0
sete bl
mov eax, dword [esp + 0x2c]
cmp eax, 0
sete bh
or bh, bl
test bh, 1
jne 0x406a1d
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x3c]
add ecx, edx
mov si, word [esp + 0x7e]
xor si, 0x87b0
mov edi, dword [esp + 0x2c]
cmp dword [edi + edx], 0x4550
cmove eax, ecx
mov word [esp + 0x7e], si
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
add eax, 6
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
cmp word [eax], 0
je 0x406a1d
jmp 0x406a70
mov dword [esp + 0x48], 0x7b1f05a8
cmp dword [esp + 0x48], 0x19a0d52a
jbe 0x406a68
jmp 0x40696f