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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
xor eax, eax
push ebp
push 0x4086e5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x408505
cmp byte [ebx], 0
je 0x408505
movzx eax, byte [ebx + 1]
cmp al, byte [0x41da25]
jne 0x408505
cmp dword [ebp + 8], 0x38
je 0x40850f
mov ebx, 0xfffffffa
jmp 0x4086d7
lea eax, [esi + 0x18]
call fcn.00403ec4
cmp dword [esi + 0x20], 0
jne 0x408529
mov dword [esi + 0x20], 0x4083d0
xor eax, eax
mov dword [esi + 0x28], eax
cmp dword [esi + 0x24], 0
jne 0x408536
mov dword [esi + 0x24], 0x4083c8
cmp dword [ebp - 4], 0xffffffff
jne 0x408543
mov dword [ebp - 4], 6
test edi, edi
jge 0x408550
mov dword [ebp - 0xc], 1
neg edi
cmp dword [ebp + 0x14], 1
jl 0x408584
cmp dword [ebp + 0x14], 9
jg 0x408584
cmp dword [ebp - 8], 8
jne 0x408584
cmp edi, 9
jl 0x408584
cmp edi, 0xf
jg 0x408584
cmp dword [ebp - 4], 0
jl 0x408584
cmp dword [ebp - 4], 9
jg 0x408584
cmp dword [ebp + 0x10], 0
jl 0x408584
cmp dword [ebp + 0x10], 2
jle 0x40858e
mov ebx, 0xfffffffe
jmp 0x4086d7
mov eax, esi
mov ecx, 0x16b8
mov edx, 1
call fcn.004083dc
mov ebx, eax
test ebx, ebx
jne 0x4085af
mov ebx, 0xfffffffc
jmp 0x4086d7
mov dword [esi + 0x1c], ebx
mov dword [ebx], esi
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
mov eax, edi
mov dword [ebx + 0x28], eax
mov ecx, eax
mov edx, 1
shl edx, cl
mov dword [ebx + 0x24], edx
dec edx
mov dword [ebx + 0x2c], edx
mov eax, dword [ebp + 0x14]
add eax, 7
mov dword [ebx + 0x48], eax
mov ecx, eax
mov edx, 1
shl edx, cl
mov dword [ebx + 0x44], edx
dec edx
mov dword [ebx + 0x4c], edx
mov eax, dword [ebx + 0x48]
add eax, 3
dec eax
mov ecx, 3
xor edx, edx
div ecx
mov dword [ebx + 0x50], eax
mov eax, esi
mov ecx, 2
mov edx, dword [ebx + 0x24]
call fcn.004083dc
mov dword [ebx + 0x30], eax
mov eax, esi
mov ecx, 2
mov edx, dword [ebx + 0x24]
call fcn.004083dc
mov dword [ebx + 0x38], eax
mov eax, esi
mov ecx, 2
mov edx, dword [ebx + 0x44]
call fcn.004083dc
mov dword [ebx + 0x3c], eax
mov ecx, dword [ebp + 0x14]
add ecx, 6
mov edi, 1
shl edi, cl
mov dword [ebx + 0x1690], edi
mov eax, esi
mov ecx, 4
mov edx, edi
call fcn.004083dc
mov dword [ebx + 8], eax
mov edx, dword [ebx + 0x1690]
add edx, edx
add edx, edx
mov dword [ebx + 0xc], edx
cmp dword [ebx + 0x30], 0
je 0x40867a
cmp dword [ebx + 0x38], 0
je 0x40867a
cmp dword [ebx + 0x3c], 0
je 0x40867a
cmp dword [ebx + 8], 0
jne 0x408695
lea eax, [esi + 0x18]
mov edx, 0x41dab4
call fcn.004040ec
mov eax, esi
call fcn.00408a9c
mov ebx, 0xfffffffc
jmp 0x4086d7
mov edx, dword [ebx + 0x1690]
shr edx, 1
lea eax, [eax + edx*2]
mov dword [ebx + 0x1698], eax
mov eax, dword [ebx + 0x1690]
lea eax, [eax + eax*2]
mov edx, dword [ebx + 8]
lea eax, [edx + eax]
mov dword [ebx + 0x168c], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x7c], eax
movzx eax, byte [ebp - 8]
mov byte [ebx + 0x1d], al
mov eax, esi
call fcn.00408720
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4086ec
ret