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

Disassembly:
push 0xffffffffffffffff
push 0x41f8a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov al, byte [esp + 0x78]
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 1
mov byte [esp + 0x1c], al
call fcn.004033d0
push 0x421180
lea ecx, [esp + 0x80]
mov byte [esp + 0x64], 2
call fcn.004058e0
test eax, eax
je 0x4017f9
mov ecx, dword [0x421188]
lea edx, [esp + 0x7c]
push ecx
push 0
push edx
lea ecx, [esi + 0x14]
call fcn.00402fa0
lea eax, [esi + 0x14]
lea ecx, [esp + 0x48]
push eax
push 0x426080
push ecx
call fcn.00405530
push 0x426074
lea edx, [esp + 0x48]
push eax
push edx
mov byte [esp + 0x78], 3
call fcn.00405400
lea ecx, [esp + 0x80]
lea edx, [esp + 0x40]
push ecx
mov bl, 4
push eax
push edx
mov byte [esp + 0x84], bl
call fcn.004052d0
add esp, 0x24
mov ecx, dword [0x421188]
mov byte [esp + 0x60], 5
push ecx
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00402fa0
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], bl
call fcn.004033d0
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 3
call fcn.004033d0
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x64], 2
call fcn.004033d0
lea edx, [esp + 0x14]
lea ecx, [esi + 0x24]
push edx
call fcn.00403a80
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x28]
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x40190a
mov bl, 6
lea edi, [eax + 0xc]
push 0
lea ecx, [esp + 0x2c]
mov al, byte [edi]
mov byte [esp + 0x2c], al
call fcn.004033d0
mov ecx, dword [0x421188]
push ecx
push 0
push edi
lea ecx, [esp + 0x34]
call fcn.00402fa0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x28]
push edx
mov byte [esp + 0x64], bl
call fcn.00405890
test eax, eax
je 0x40197a
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 2
call fcn.004033d0
lea ecx, [esp + 0x10]
call fcn.00404ce0
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x28]
cmp eax, ecx
jne 0x4018a5
mov edi, 0x421180
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00404750
test al, al
je 0x40194f
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x421180
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x1c]
xor esi, esi
cmp ecx, esi
je 0x401a88
mov al, byte [ecx - 1]
test al, al
je 0x401a7e
cmp al, 0xff
je 0x401a7e
dec al
mov byte [ecx - 1], al
jmp 0x401a88
mov eax, dword [esp + 0x10]
mov ecx, dword [0x421188]
mov edi, dword [esp + 0x78]
add eax, 0x1c
push ecx
push 0
push eax
mov ecx, edi
call fcn.00402fa0
mov eax, dword [edi + 8]
test eax, eax
je 0x401a36
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x8c], esp
push edi
call fcn.00401ce0
lea edx, [esp + 0x5c]
mov ecx, esi
push edx
call fcn.00401b10
mov ecx, dword [0x421188]
mov byte [esp + 0x60], 7
push ecx
push 0
push eax
mov ecx, edi
call fcn.00402fa0
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x64], bl
call fcn.004033d0
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 2
call fcn.004033d0
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 1
call fcn.004033d0
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x64], 0
call fcn.004033d0
push 1
lea ecx, [esp + 0x80]
mov dword [esp + 0x64], 0xffffffff
call fcn.004033d0
mov eax, 1
jmp 0x401aed
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 2
call fcn.004033d0
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 1
call fcn.004033d0
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x64], 0
call fcn.004033d0
push 1
lea ecx, [esp + 0x80]
mov dword [esp + 0x64], 0xffffffff
call fcn.004033d0
jmp 0x401aeb
dec ecx
push ecx
call fcn.00406e00
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], esi
cmp ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
je 0x401ab8
mov al, byte [ecx - 1]
test al, al
je 0x401aae
cmp al, 0xff
je 0x401aae
dec al
mov byte [ecx - 1], al
jmp 0x401ab8
dec ecx
push ecx
call fcn.00406e00
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x6c], esi
cmp ecx, esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
je 0x401aeb
mov al, byte [ecx - 1]
test al, al
je 0x401ae1
cmp al, 0xff
je 0x401ae1
dec al
mov byte [ecx - 1], al
jmp 0x401aeb
dec ecx
push ecx
call fcn.00406e00
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret 0x24