Function at 0x4017d0
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 + 8]
mov ecx, 0x58bf
lea edx, [0x40f774]
mov esi, 0x8f9b
mov byte [esp + 0x76], 4
mov bl, byte [esp + 0x77]
mov dword [esp + 0x70], 0x58bf
mov edi, dword [esp + 0x70]
sub esi, edi
mov dword [esp + 0x28], esi
mov bh, byte [esp + 0x76]
add bh, 0xd0
mov byte [esp + 0x5b], bh
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x70]
xor eax, 0x58bf
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
add eax, 0xffffa741
mov si, word [esp + 0x7e]
mov dword [esp + 0x30], eax
sub ecx, dword [esp + 0x70]
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x27], bl
mov word [esp + 0x24], si
mov dword [esp + 0x20], edi
mov eax, 0xa76f
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x5c]
sub eax, dword [esp + 0x70]
mov dword [esp + 0x3c], edx
cmp ecx, eax
jne 0x40190b
jmp 0x401933
mov eax, dword [esp + 0x70]
xor eax, 0x58be
add eax, dword [esp + 0x6c]
mov dword [esp + 0x5c], eax
jmp 0x401854
mov ax, word [esp + 0x24]
add ax, 0x2979
mov word [esp + 0x7e], ax
mov ecx, dword [esp + 0x50]
imul edx, dword [esp + 0x5c], 0xc
add ecx, edx
mov ecx, dword [ecx]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x5c]
imul ecx, ecx, 0xc
add ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x78], edx
imul esi, edx, 0x4f4b
mov ecx, dword [ecx + 8]
mov dword [esp + 0x78], esi
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x78], edx
xor ecx, dword [esp + 0x40]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x30]
add ecx, dword [esp + 0x40]
mov dword [esp + 0x30], ecx
jmp 0x401b16
mov eax, dword [esp + 0x70]
add eax, 0xffffa741
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 0xc], 0x2800
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov al, 0xf6
mov cl, byte [esp + 0x27]
mov byte [esp + 0x1f], al
mov al, cl
mov dl, byte [esp + 0x1f]
mul dl
mov esi, dword [esp + 0x3c]
mov byte [esp + 0x77], al
cmp esi, 0x40
jb 0x401889
jmp 0x401a0b
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x68]
lea ecx, [ecx + ecx*2]
mov edx, dword [esp + 0x20]
add edx, 0x8c0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x78], edx
mov dword [esp + 0x64], eax
mov bl, byte [esp + 0x27]
add bl, 0xef
mov eax, dword [esp + 0x68]
mov byte [esp + 0x77], bl
mov ecx, dword [esp + 0x50]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*4 + 4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x50]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*4 + 8]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x64]
xor ecx, eax
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
add edx, dword [esp + 0x4c]
mov esi, esp
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], edx
call fcn.00403260
sub esp, 0xc
mov ecx, dword [esp + 0x64]
add ecx, dword [esp + 0x4c]
mov di, word [esp + 0x24]
mov word [esp + 0x7e], di
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x18], eax
jmp 0x4019f6
mov eax, 0x58ff
sub eax, dword [esp + 0x70]
cmp dword [esp + 0x68], eax
jb 0x401933
jmp 0x401a85
mov eax, 0x58c0
mov ecx, dword [esp + 0x68]
sub eax, dword [esp + 0x70]
add ecx, eax
mov dword [esp + 0x68], ecx
jmp 0x4019de
mov eax, esp
mov dword [eax], 0x404156
call fcn.00402060
sub esp, 4
mov word [esp + 0x7e], 0
mov ecx, dword [esp + 0x70]
mov edx, 0x68bf
sub edx, ecx
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x30]
mov esi, esp
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], 4
mov dword [esi], 0
call eax
sub esp, 0x10
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
add ecx, 0x1be5
adc edx, 0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x68], 0
jmp 0x4019de
mov al, 0xec
mov cx, word [esp + 0x24]
imul dx, cx, 0x3d27
mov esi, dword [esp + 0x48]
sub al, byte [esp + 0x76]
mov edi, dword [esp + 0x30]
mov word [esp + 0x7e], dx
mov ebx, dword [esp + 0x48]
mov byte [esp + 0x3b], al
mov al, byte [esp + 0x3b]
mov ecx, esp
mov dword [ecx + 8], edi
mov dword [ecx + 4], esi
mov dword [ecx], ebx
mov byte [esp + 0x17], al
call fcn.00401b30
sub esp, 0xc
mov al, 0x8a
mov ecx, 0x452bf
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
and edi, 0x5dfa
mov ebx, dword [esp + 0x48]
add ebx, 0x57db
mov dword [esp + 0x78], edi
mov dword [esi], ebx
mov esi, dword [esp + 0x2c]
sub ecx, dword [esp + 0x70]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x2c]
add ecx, 0xd6a
mov dword [esi + 8], ecx
mov ah, byte [esp + 0x17]
cmp al, ah
jb 0x4018ed
jmp 0x401854
mov al, 0x59
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x6c], ecx
cmp al, byte [esp + 0x5b]
jbe 0x401876
jmp 0x401933