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

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