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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x411ab1
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x41607c]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x41607c]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov ecx, 7
xor edi, edi
xor edx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edi
mov word [esp + 0x20], dx
mov dword [esp + 0x160], edi
mov dword [esp + 0x50], ecx
xor ecx, ecx
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], cx
add eax, 0x8c
mov byte [esp + 0x160], 1
cmp dword [eax + 0x14], 8
mov dword [esp + 0x1c], eax
mov dword [eax + 0x10], edi
jb 0x403c05
mov eax, dword [eax]
xor edx, edx
mov word [eax], dx
or eax, 0xffffffff
mov dword [esp + 0x148], 0x3d0061
mov dword [esp + 0x144], 0x3d
mov dword [esp + 0x13c], 0x3d
push edi
lea ecx, [esp + 0x40]
cmp byte [ebp + 0xc], dl
je 0x403d1c
mov word [esp + 0x150], dx
lea edx, [ebx + 0x38]
push edx
mov dword [esp + 0x148], 0x790026
mov dword [esp + 0x140], 0x700026
call fcn.00401bd0
lea eax, [esp + 0x148]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403c70
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x14c]
lea esi, [esp + 0x24]
call fcn.00401e90
mov eax, dword [esp + 0x10]
push edi
push eax
or eax, 0xffffffff
call fcn.004048f0
lea eax, [esp + 0x140]
lea edx, [eax + 2]
jmp 0x403cb0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403cb0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x144]
lea ecx, [esp + 0x24]
call fcn.004049e0
mov ecx, dword [esp + 0x10]
push edi
add ecx, 0x54
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x28]
call fcn.004048f0
lea eax, [esp + 0x138]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403cf0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x24]
call fcn.004049e0
mov edx, dword [esp + 0x10]
add edx, 0x70
jmp 0x403df7
xor edx, edx
mov word [esp + 0x150], dx
lea edx, [ebx + 0x54]
push edx
mov dword [esp + 0x148], 0x6c0026
mov dword [esp + 0x140], 0x650026
call fcn.00401bd0
lea eax, [esp + 0x148]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403d50
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x14c]
lea esi, [esp + 0x24]
call fcn.00401e90
mov eax, dword [esp + 0x10]
push edi
push eax
or eax, 0xffffffff
call fcn.004048f0
lea eax, [esp + 0x140]
lea edx, [eax + 2]
jmp 0x403d90
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403d90
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x144]
lea ecx, [esp + 0x24]
call fcn.004049e0
mov ecx, dword [esp + 0x10]
push edi
add ecx, 0x1c
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x28]
call fcn.004048f0
lea eax, [esp + 0x138]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403dd0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x24]
call fcn.004049e0
mov edx, dword [esp + 0x10]
add edx, 0x38
push edi
push edx
or eax, 0xffffffff
lea esi, [esp + 0x28]
call fcn.004048f0
mov eax, dword [ebx + 0x74]
sub eax, edi
je 0x4041d9
dec eax
je 0x404017
dec eax
je 0x403e63
mov esi, 8
cmp dword [esp + 0x50], esi
jb 0x403e32
mov eax, dword [esp + 0x3c]
push eax
call fcn.0040b62c
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], cx
cmp dword [esp + 0x34], esi
jb 0x404224
mov edx, dword [esp + 0x20]
push edx
call fcn.0040b62c
add esp, 4
xor al, al
jmp 0x4046c4
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
xor eax, eax
mov esi, 7
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push edi
lea edx, [esp + 0x40]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00401bd0
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x198], 0x14
mov dword [esp + 0x4c], esp
xor eax, eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push edi
lea edx, [esp + 0x78]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00401bd0
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x1b4], 0x15
mov dword [esp + 0x18c], esp
xor eax, eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push edi
mov word [ecx], ax
push ebx
or eax, 0xffffffff
call fcn.00401bd0
push ebx
lea ecx, [esp + 0x120]
mov byte [esp + 0x1b8], 1
call fcn.00402b40
mov esi, dword [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x160], 0x16
call fcn.00401b60
mov byte [esp + 0x160], 1
cmp dword [esp + 0xdc], 8
jb 0x403f27
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.0040b62c
add esp, 4
mov eax, dword [esp + 0x10]
xor esi, esi
xor edx, edx
mov edi, 7
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], esi
mov word [esp + 0xc8], dx
cmp dword [eax + 0x9c], esi
ja 0x404672
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x154], esp
push esi
lea eax, [esp + 0x40]
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], esi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401bd0
sub esp, 0x1c
mov byte [esp + 0x198], 0x17
mov ecx, esp
mov dword [esp + 0x50], esp
push esi
lea eax, [esp + 0x78]
xor edx, edx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], esi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401bd0
sub esp, 0x1c
mov byte [esp + 0x1b4], 0x18
mov ecx, esp
mov dword [esp + 0x68], esp
push esi
lea eax, [ebx + 0x1c]
xor edx, edx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], esi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401bd0
push ebx
lea ecx, [esp + 0x174]
mov byte [esp + 0x1b8], 1
call fcn.00402b40
mov esi, dword [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x160], 0x19
call fcn.00401b60
cmp dword [esp + 0x130], 8
jb 0x404672
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.0040b62c
add esp, 4
jmp 0x404672
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x154], esp
push edi
lea eax, [esp + 0x40]
mov esi, 7
xor edx, edx
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401bd0
sub esp, 0x1c
mov byte [esp + 0x198], 0xe
mov ecx, esp
mov dword [esp + 0x50], esp
push edi
lea eax, [esp + 0x78]
xor edx, edx
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401bd0
sub esp, 0x1c
mov byte [esp + 0x1b4], 0xf
mov ecx, esp
mov dword [esp + 0x194], esp
push edi
xor edx, edx
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401bd0
push ebx
lea ebx, [esp + 0xcc]
mov byte [esp + 0x1b8], 1
call fcn.004027b0
mov esi, dword [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x160], 0x10
call fcn.00401b60
mov bl, 1
mov byte [esp + 0x160], bl
cmp dword [esp + 0x88], 8
jb 0x4040dc
mov eax, dword [esp + 0x74]
push eax
call fcn.0040b62c
add esp, 4
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov word [esp + 0x74], cx
cmp dword [edx + 0x9c], ecx
ja 0x404672
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x15c], esp
xor edi, edi
xor eax, eax
mov esi, 7
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push edi
lea edx, [esp + 0x40]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00401bd0
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x198], 0x11
mov dword [esp + 0x170], esp
xor eax, eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push edi
lea edx, [esp + 0x78]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00401bd0
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x1b4], 0x12
mov dword [ecx + 0x14], esi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x6c], esp
xor eax, eax
mov dword [ecx + 0x10], edi
push edi
lea edx, [esi + 0x1c]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00401bd0
mov byte [esp + 0x1b4], bl
push esi
lea ebx, [esp + 0x158]
call fcn.004027b0
mov esi, dword [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x160], 0x13
call fcn.00401b60
cmp dword [esp + 0x114], 8
jb 0x404672
mov eax, dword [esp + 0x100]
push eax
call fcn.0040b62c
add esp, 4
jmp 0x404672
mov eax, dword [ebx + 0x78]
dec eax
je 0x404439
dec eax
je 0x40422b
mov esi, 8
cmp dword [esp + 0x50], esi
jb 0x4041fe
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0040b62c
add esp, 4
xor edx, edx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], dx
cmp dword [esp + 0x34], esi
jb 0x404224
mov eax, dword [esp + 0x20]
push eax
call fcn.0040b62c
add esp, 4
xor al, al
jmp 0x4046c4
mov dword [esp + 0x14], edi
jmp 0x404233
xor edi, edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x15c], esp
push edi
lea eax, [esp + 0x40]
mov esi, 7
xor edx, edx
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401bd0
sub esp, 0x1c
mov byte [esp + 0x198], 8
mov ecx, esp
mov dword [esp + 0x170], esp
push edi
lea eax, [esp + 0x78]
xor edx, edx
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401bd0
sub esp, 0x1c
mov byte [esp + 0x1b4], 9
mov ecx, esp
mov dword [esp + 0x6c], esp
push edi
xor edx, edx
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401bd0
push ebx
lea ecx, [esp + 0xb0]
mov byte [esp + 0x1b8], 1
call fcn.00402b40
mov esi, dword [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x160], 0xa
call fcn.00401b60
mov byte [esp + 0x160], 1
cmp dword [esp + 0x6c], 8
jb 0x4042f4
mov eax, dword [esp + 0x58]
push eax
call fcn.0040b62c
add esp, 4
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], cx
cmp dword [edx + 0x9c], ecx
ja 0x404672
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x15c], esp
xor edi, edi
xor eax, eax
mov esi, 7
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push edi
lea edx, [esp + 0x40]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00401bd0
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x198], 0xb
mov dword [esp + 0x170], esp
xor eax, eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push edi
lea edx, [esp + 0x78]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00401bd0
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x1b4], 0xc
mov dword [esp + 0x6c], esp
xor eax, eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push edi
lea edx, [ebx + 0x1c]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00401bd0
push ebx
lea ecx, [esp + 0x104]
mov byte [esp + 0x1b8], 1
call fcn.00402b40
mov esi, dword [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x160], 0xd
call fcn.00401b60
mov byte [esp + 0x160], 1
cmp dword [esp + 0xc0], 8
jb 0x4043e7
mov eax, dword [esp + 0xac]
push eax
call fcn.0040b62c
add esp, 4
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], 0
mov word [esp + 0xac], cx
cmp dword [edx + 0x9c], ecx
ja 0x404672
push 0x160d
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 2
jl 0x404231
jmp 0x404672
mov dword [esp + 0x18], edi
jmp 0x404446
mov ebx, dword [esp + 0x14]
xor edi, edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x15c], esp
xor eax, eax
mov esi, 7
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push edi
lea edx, [esp + 0x40]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00401bd0
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x198], 2
mov dword [esp + 0x170], esp
xor eax, eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push edi
lea edx, [esp + 0x78]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00401bd0
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x1b4], 3
mov dword [esp + 0x19c], esp
xor eax, eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push edi
mov word [ecx], ax
push ebx
or eax, 0xffffffff
call fcn.00401bd0
push ebx
lea ebx, [esp + 0x13c]
mov byte [esp + 0x1b8], 1
call fcn.004027b0
mov esi, dword [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x160], 4
call fcn.00401b60
mov bl, 1
mov byte [esp + 0x160], bl
cmp dword [esp + 0xf8], 8
jb 0x404511
mov ecx, dword [esp + 0xe4]
push ecx
call fcn.0040b62c
add esp, 4
mov eax, dword [esp + 0x10]
xor edi, edi
xor edx, edx
mov esi, 7
mov dword [esp + 0xf8], esi
mov dword [esp + 0xf4], edi
mov word [esp + 0xe4], dx
cmp dword [eax + 0x9c], edi
ja 0x404654
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x164], esp
push edi
lea eax, [esp + 0x40]
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401bd0
sub esp, 0x1c
mov byte [esp + 0x198], 5
mov ecx, esp
mov dword [esp + 0x178], esp
push edi
lea eax, [esp + 0x78]
xor edx, edx
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401bd0
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x1b4], 6
mov dword [ecx + 0x14], esi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x18c], esp
push edi
lea eax, [esi + 0x1c]
xor edx, edx
push eax
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401bd0
mov byte [esp + 0x1b4], bl
push esi
lea ebx, [esp + 0xe8]
call fcn.004027b0
mov esi, dword [esp + 0x1c]
mov ebx, 7
mov edi, eax
mov byte [esp + 0x160], bl
call fcn.00401b60
mov byte [esp + 0x160], 1
cmp dword [esp + 0xa4], 8
jb 0x40460d
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0040b62c
add esp, 4
mov eax, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa0], 0
mov word [esp + 0x90], dx
cmp dword [eax + 0x9c], edx
ja 0x404652
push 0x160d
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 2
jl 0x404440
xor edi, edi
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x9c], edi
ja 0x404672
mov eax, dword [esp + 0x14]
mov dword [eax + 0x74], 0
mov dword [eax + 0x78], 2
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x9c], 0
mov esi, 8
seta bl
cmp dword [esp + 0x50], esi
jb 0x404698
mov eax, dword [esp + 0x3c]
push eax
call fcn.0040b62c
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], cx
cmp dword [esp + 0x34], esi
jb 0x4046c2
mov edx, dword [esp + 0x20]
push edx
call fcn.0040b62c
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0040b13a
mov esp, ebp
pop ebp
ret 8