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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49645b
push eax
mov dword fs:[0], esp
sub esp, 0x180
cmp dword [str.GetProcessHeap], 0
push ebx
push esi
push edi
je 0x403c4c
cmp dword [0x4bdff4], 0
jne 0x403c4c
mov ecx, dword [0x4be7d8]
mov ebx, dword [0x4be784]
xor eax, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
jle 0x403916
lea edx, [ebx + 4]
mov esi, dword [ebp + 0xc]
cmp dword [edx], esi
je 0x403916
inc eax
add edx, 0xc
cmp eax, ecx
jl 0x403907
cmp eax, ecx
je 0x403c4c
mov ecx, dword [0x4ba3d0]
lea eax, [eax + eax*2]
mov esi, dword [ebx + eax*4]
lea ebx, [ebx + eax*4]
mov eax, dword [0x4bdfd8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
cmp eax, ecx
jl 0x40395a
add ecx, 2
cmp eax, ecx
jge 0x403c4c
mov ecx, dword [esi + 8]
mov al, byte [ecx]
cmp al, 0xd8
je 0x40395a
cmp al, 0xd3
jne 0x403c4c
mov dx, word [ebx + 8]
cmp dx, word [ebx + 0xa]
jge 0x403c4c
mov eax, dword [0x4ba3fc]
cmp dword [eax + 0x2c], 0
jg 0x403c4c
mov ecx, dword [0x4be7e8]
push 0
mov edi, 1
push edi
call fcn.00401e40
push 0x7f
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.004894f4
xor edx, edx
mov word [esp + 0x192], dx
mov eax, dword [esi + 8]
movzx ecx, byte [eax]
add esp, 0xc
push ecx
push edx
push edx
mov al, 1
call fcn.00403c70
mov eax, dword [ebp + 8]
add esp, 0xc
call fcn.00470ea0
mov esi, dword [0x4ba3fc]
mov dword [esi + 0xc0], eax
test eax, eax
je 0x403a3e
mov edi, eax
call fcn.00401ef0
mov edi, eax
test edi, edi
je 0x403a39
mov edx, dword [edi + 8]
mov ecx, dword [ebp + 8]
mov ebx, dword [0x4975fc]
mov dword [esi + 0x44], edx
mov eax, dword [edi + 8]
push ecx
mov dword [esi + 0x4c], eax
call ebx
lea esi, [eax - 3]
cmp esi, dword [edi + 0xc]
jb 0x403a13
mov edx, dword [ebp + 8]
push edx
call dword [0x4975f8]
test eax, eax
je 0x403a13
push eax
call ebx
lea esi, [eax - 3]
mov edi, dword [edi + 0xc]
mov eax, esi
cmp esi, edi
jb 0x403a21
mov eax, 0x2af8
mov esi, dword [0x4ba3fc]
mov ebx, dword [esp + 0x10]
cmp eax, edi
mov edi, 1
jae 0x403a3e
mov dword [esi + 0x48], eax
jmp 0x403a3e
mov edi, 1
mov eax, dword [ebp + 0x18]
xor ecx, ecx
cmp eax, ecx
je 0x403a59
mov edx, dword [eax + 0x14]
mov dword [esi + 0x3c], edx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x40], edx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x10]
lea edx, [esp + 0x48]
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x14]
lea edx, [esp + 0x58]
mov dword [esp + 0x3c], edx
cdq
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x68]
mov dword [esp + 0x40], eax
mov dword [esp + 0x68], edx
mov edx, dword [ebp + 8]
lea eax, [esp + 0x78]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
call dword [0x4972cc]
xor esi, esi
mov dword [0x4c0c24], eax
mov dword [0x4c0c20], eax
add word [ebx + 8], di
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
push esi
push 4
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x1a8], esi
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.00455e40
test al, al
je 0x403b44
lea ecx, [esp + 0x28]
call fcn.0044c1f0
test eax, eax
sete al
mov byte [esp + 0xf], al
test al, al
je 0x403b2f
push esi
lea ecx, [esp + 0x2c]
call fcn.0044c2d0
mov edx, dword [ebp + 0x1c]
add esp, 4
mov dword [edx], eax
cmp dword [esp + 0x30], 5
jne 0x403b49
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x403b49
mov byte [esp + 0xf], 0
mov dword [esp + 0x194], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x403b6f
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0046f9a0
add esp, 0xc
mov ecx, dword [0x4be7e8]
sub dword [0x4bdfd8], edi
sub dword [0x4ba3fc], 0xf8
push edi
push esi
push 0xffffffffffffffff
lea eax, [esp + 0x94]
push eax
call fcn.0046f110
push esi
mov eax, 0x4c0160
call fcn.00415fc0
mov edx, dword [0x4be7d8]
cmp edx, dword [esp + 0x24]
jl 0x403bdc
mov ecx, dword [ebp + 0xc]
cmp dword [ebx + 4], ecx
jne 0x403bdc
movzx eax, word [ebx + 8]
cmp ax, si
je 0x403c33
dec eax
mov word [ebx + 8], ax
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp edx, esi
jle 0x403c33
mov ecx, dword [0x4be784]
add ecx, 4
jmp 0x403bf0
mov ebx, dword [ebp + 0xc]
cmp dword [ecx], ebx
je 0x403c19
add eax, edi
add ecx, 0xc
cmp eax, edx
jl 0x403bf0
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [eax + eax*2]
mov eax, dword [0x4be784]
movzx ecx, word [eax + edx*4 + 8]
lea eax, [eax + edx*4 + 8]
cmp cx, si
je 0x403c33
dec ecx
mov word [eax], cx
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret