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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov word [esp + 0x7e], 0x5c7a
mov byte [esp + 0x77], 0
mov dword [esp + 0x70], 0x450a
mov edx, dword [esp + 0x78]
mov dword [esp + 0x58], 0x2abe
mov si, word [esp + 0x7e]
mov di, si
xor di, 0x5909
mov word [esp + 0x22], di
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov word [esp + 0x16], si
mov dword [esp + 0x10], edx
call fcn.00411c00
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
mov bl, byte [esp + 0x7d]
mov byte [esp + 0x7d], bl
cmp eax, 0
mov byte [esp + 0xf], bl
jne 0x411047
mov byte [esp + 0x2b], 0
jmp 0x411292
cmp dword [esp + 0x68], 0
jne 0x41105f
mov al, byte [esp + 0x77]
xor al, 0xff
and al, 1
mov byte [esp + 0x2b], al
jmp 0x411292
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0xa0]
mov dword [esp + 0x18], eax
mov cx, word [esp + 0x16]
mov word [esp + 0x8a], cx
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0xa4]
mov dword [esp + 0x48], eax
cmp dword [esp + 0x48], 0
jne 0x411099
mov byte [esp + 0x2b], 0
jmp 0x411292
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x6c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0xb25
test eax, eax
setne cl
movzx eax, cl
mov dword [esp + 0x44], eax
xor eax, eax
mov cl, al
test cl, cl
jne 0x41104e
jmp 0x4110d6
cmp dword [esp + 0x48], 0
setg al
and al, 1
movzx ecx, al
and ecx, dword [esp + 0x44]
cmp ecx, 0
je 0x41128d
mov eax, 0x4512
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx]
sub eax, dword [esp + 0x70]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x40]
add ecx, 8
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 4]
sub ecx, eax
shr ecx, 1
mov dword [esp + 0x1c], ecx
mov ax, 0x58dd
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ecx
cmp ax, word [esp + 0x22]
jbe 0x4110f0
mov eax, dword [esp + 0x4c]
add eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov cl, byte [esp + 0xf]
xor cl, 0xd3
mov byte [esp + 0x7d], cl
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x7d], 9
cmp eax, 0
je 0x4111dd
mov eax, dword [esp + 0x3c]
movzx eax, word [eax]
shr eax, 0xc
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
movzx eax, word [eax]
and eax, 0xfff
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x64]
sub eax, 3
mov dword [esp + 8], eax
jne 0x4111c9
jmp 0x411186
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x2c]
add edx, ecx
add eax, edx
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov ecx, dword [esp + 0x10]
xor ecx, 0xffffffff
mov dword [esp + 0x78], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
add ecx, dword [esp + 0x68]
mov dword [eax], ecx
jmp 0x4111cb
jmp 0x4111cb
jmp 0x4111cd
mov eax, dword [esp + 0x3c]
add eax, 2
mov dword [esp + 0x3c], eax
jmp 0x41111e
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
mov dl, byte [esp + 0xf]
mov byte [esp + 0x7d], dl
mov eax, dword [eax + 4]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x78], esi
mov bx, word [esp + 0x16]
mov di, bx
imul edi, edi
mov dx, di
mov edi, dword [esp + 0x70]
mov word [esp + 0x8a], dx
xor edi, 0x66cd
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x80]
and eax, 0x874
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
cmp edi, ecx
je 0x41105f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x5c]
sub ecx, eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x40]
xor eax, 0x33c7
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x40]
add edx, dword [eax + 4]
mov dword [esp + 0x40], edx
jmp 0x4110a5
mov byte [esp + 0x2b], 1
mov al, byte [esp + 0x2b]
mov word [esp + 0x8a], 0x176a
and al, 1
movzx eax, al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret