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

Disassembly:
push 0xffffffffffffffff
push 0x443685
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x451254]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451254]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov eax, dword [esp + 0xfc]
mov esi, ecx
lea ebp, [esi + 4]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x70], ebp
je 0x405080
mov eax, ebp
call fcn.0042b083
mov dword [esp + 0xf4], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0xf4], 1
mov edx, dword [esi]
push ecx
push edx
call fcn.00404220
test al, al
jne 0x4050db
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4050bd
push eax
call fcn.0042e0ba
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
cmp ebp, ebx
je 0x4050d4
mov eax, ebp
call fcn.0042b091
xor al, al
jmp 0x40567a
lea eax, [esp + 0x74]
push eax
call fcn.004024d0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0xf8], 2
call fcn.00403b50
test al, al
jne 0x40510a
lea esi, [esp + 0x74]
call fcn.004048d0
jmp 0x4050ac
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
lea eax, [esp + 0x38]
lea ecx, [esp + 0x74]
mov byte [esp + 0xf4], 3
call fcn.00403020
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x405144
mov edx, dword [esp + 0x40]
sub edx, eax
jne 0x40515e
push eax
call fcn.0042e0ba
add esp, 4
lea esi, [esp + 0x74]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.004048d0
jmp 0x4050ac
lea eax, [esp + 0xc4]
push eax
call fcn.00408da0
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0xc8]
mov byte [esp + 0xf8], 5
call fcn.00408f20
test al, al
jne 0x4051e6
lea ecx, [esp + 0xa8]
call fcn.00401950
lea edx, [esp + 0xc4]
push edx
mov byte [esp + 0xf8], 3
call fcn.00408e70
lea esi, [esp + 0x38]
call fcn.004058f0
lea esi, [esp + 0x74]
call fcn.004048d0
lea esi, [esp + 0x28]
call fcn.004058f0
jmp 0x4050c9
lea esi, [esp + 0x14]
call fcn.0042a3d0
push 2
push 0x40000000
lea eax, [esp + 0xb0]
call fcn.0042a526
test al, al
jne 0x405225
lea eax, [esp + 0x14]
call fcn.0042a501
lea ecx, [esp + 0xa8]
call fcn.00401950
lea eax, [esp + 0xc4]
push eax
jmp 0x4051b9
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
mov dword [esp + 0x48], ebx
jne 0x405237
mov dword [esp + 0x1c], ebx
jmp 0x405241
mov eax, dword [esp + 0x40]
sub eax, ecx
mov dword [esp + 0x1c], eax
xor edi, edi
lea esi, [esp + 0x38]
call fcn.00405be0
mov edi, dword [esp + 0x1c]
push eax
lea esi, [esp + 0x4c]
lea eax, [esp + 0x18]
call fcn.0042a59b
test al, al
jne 0x40528b
lea esi, [esp + 0x14]
call fcn.0042a5cd
mov eax, esi
call fcn.0042a501
lea ecx, [esp + 0xa8]
call fcn.00401950
lea ecx, [esp + 0xc4]
push ecx
jmp 0x4051b9
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
jne 0x405297
xor eax, eax
jmp 0x40529d
mov eax, dword [esp + 0x40]
sub eax, ecx
cmp dword [esp + 0x48], eax
je 0x4052b8
lea esi, [esp + 0x14]
call fcn.0042a5cd
mov eax, esi
call fcn.0042a501
jmp 0x4051a5
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x4052c6
mov dword [esp + 0x5c], ebx
jmp 0x4052d0
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov dword [esp + 0x5c], ecx
lea edx, [esp + 0x5c]
push edx
lea esi, [esp + 0x4c]
mov edi, 4
lea eax, [esp + 0x18]
call fcn.0042a59b
test al, al
jne 0x4052f9
lea esi, [esp + 0x14]
call fcn.0042a5cd
jmp 0x405206
cmp dword [esp + 0x48], edi
jne 0x405262
lea eax, [esp + 0x28]
call fcn.00405bc0
test al, al
jne 0x405373
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
jne 0x40531e
mov dword [esp + 0x1c], ebx
jmp 0x405328
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x1c], eax
xor edi, edi
lea esi, [esp + 0x28]
call fcn.00405be0
mov edi, dword [esp + 0x1c]
push eax
lea esi, [esp + 0x4c]
lea eax, [esp + 0x18]
call fcn.0042a59b
test al, al
je 0x4052a3
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
jne 0x405359
xor eax, eax
jmp 0x40535f
mov eax, dword [esp + 0x30]
sub eax, ecx
cmp dword [esp + 0x48], eax
je 0x405373
lea esi, [esp + 0x14]
call fcn.0042a5cd
jmp 0x405206
lea esi, [esp + 0x54]
lea eax, [esp + 0x14]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.0042a5ef
test al, al
je 0x40539f
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ecx
push edx
lea edi, [esp + 0x1c]
call fcn.0042a6c7
lea esi, [esp + 0x14]
call fcn.0042a5cd
cmp ebp, ebx
je 0x4053b9
mov eax, ebp
call fcn.0042b091
xor ebp, ebp
mov dword [esp + 0x70], ebp
mov esi, dword [esp + 0x20]
add esi, 8
cmp esi, ebx
mov dword [esp + 0x4c], esi
mov byte [esp + 0x50], bl
je 0x4053d5
call fcn.0042b002
mov byte [esp + 0x50], al
mov byte [esp + 0xf4], 7
mov edi, dword [esp + 0x18]
xor esi, esi
jmp 0x4053f0
mov ecx, edi
lea ebx, [esp + 0xa8]
call fcn.0042b16f
mov bl, al
mov byte [esp + 0x27], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
test bl, bl
jne 0x40561f
cmp eax, 0x20
je 0x40541c
cmp eax, 0x21
jne 0x405424
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 1
cmp esi, 0xa
jb 0x4053f0
lea esi, [esp + 0x18]
call fcn.0042a3d0
push 3
push 0x80000000
lea eax, [esp + 0xb0]
mov byte [esp + 0xfc], 8
call fcn.0042a526
test al, al
jne 0x4054b2
lea eax, [esp + 0x18]
call fcn.0042a501
lea edi, [esp + 0x4c]
call fcn.004024b0
lea eax, [esp + 0x14]
call fcn.0042a501
lea ecx, [esp + 0xa8]
call fcn.00401950
lea eax, [esp + 0xc4]
push eax
mov byte [esp + 0xf8], 3
call fcn.00408e70
lea esi, [esp + 0x38]
call fcn.004058f0
lea esi, [esp + 0x74]
call fcn.004048d0
lea esi, [esp + 0x28]
call fcn.004058f0
test ebp, ebp
jmp 0x4050cb
lea ecx, [esp + 0x18]
push ecx
call fcn.0042a6ac
test al, al
jne 0x4054f1
lea eax, [esp + 0x18]
call fcn.0042a501
lea edi, [esp + 0x4c]
call fcn.004024b0
lea eax, [esp + 0x14]
call fcn.0042a501
lea ecx, [esp + 0xa8]
call fcn.00401950
lea edx, [esp + 0xc4]
push edx
jmp 0x405483
lea esi, [esp + 0x20]
call fcn.0042a3d0
push 4
push 0x40000000
mov eax, edi
call fcn.0042a526
test al, al
jne 0x405518
mov eax, esi
call fcn.0042a501
jmp 0x405454
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0xf4], 0xa
mov ebx, dword [esp + 0x54]
lea eax, [ebx + 8]
lea ecx, [esp + 0x60]
call fcn.00405b00
push ebx
xor edi, edi
lea esi, [esp + 0x64]
call fcn.00405be0
push eax
lea edx, [esp + 0x24]
lea eax, [esp + 0x20]
call fcn.0042a565
test al, al
je 0x4056bb
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp ebx, eax
jne 0x4056bb
cmp dword [esp + 0x58], ecx
jne 0x4056bb
lea ecx, [esp + 0x20]
push ecx
call fcn.0042a6ac
test al, al
jne 0x40559d
call fcn.004058f0
lea eax, [esp + 0x20]
call fcn.0042a501
jmp 0x4054c0
mov dword [esp + 0x1c], edi
xor edi, edi
call fcn.00405be0
push eax
lea esi, [esp + 0x20]
mov edi, ebx
lea eax, [esp + 0x24]
call fcn.0042a59b
test al, al
je 0x4056a4
mov eax, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, ebx
jne 0x4056a4
mov eax, dword [esp + 0x58]
cmp ecx, eax
jne 0x4056a4
push eax
push ebx
lea edi, [esp + 0x28]
call fcn.0042a6c7
test al, al
je 0x4055ee
mov byte [esp + 0x27], 1
lea esi, [esp + 0x20]
call fcn.0042a5cd
lea esi, [esp + 0x18]
call fcn.0042a5cd
lea esi, [esp + 0x60]
call fcn.004058f0
lea eax, [esp + 0x20]
call fcn.0042a501
lea eax, [esp + 0x18]
call fcn.0042a501
mov bl, byte [esp + 0x27]
lea edi, [esp + 0x4c]
call fcn.004024b0
lea eax, [esp + 0x14]
call fcn.0042a501
lea ecx, [esp + 0xa8]
call fcn.00401950
lea edx, [esp + 0xc4]
push edx
mov byte [esp + 0xf8], 3
call fcn.00408e70
lea esi, [esp + 0x38]
call fcn.004058f0
lea esi, [esp + 0x74]
call fcn.004048d0
lea esi, [esp + 0x28]
call fcn.004058f0
test ebp, ebp
je 0x405678
mov eax, ebp
call fcn.0042b091
mov al, bl
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0042e4b4
add esp, 0xe4
ret 4
lea esi, [esp + 0x60]
call fcn.004058f0
lea eax, [esp + 0x20]
call fcn.0042a501
jmp 0x405454
lea esi, [esp + 0x60]
call fcn.004058f0
lea eax, [esp + 0x20]
call fcn.0042a501
lea eax, [esp + 0x18]
call fcn.0042a501
lea edi, [esp + 0x4c]
call fcn.004024b0
lea eax, [esp + 0x14]
call fcn.0042a501
lea ecx, [esp + 0xa8]
call fcn.00401950
lea ecx, [esp + 0xc4]
push ecx
jmp 0x405483