Function at 0x4381f0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1bc
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x1b8], eax
mov eax, dword [esp + 0x1cc]
push ebp
mov ebp, dword [esp + 0x1c4]
push edi
mov edi, dword [esp + 0x1cc]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x438240
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.004b6da3
add esp, 0x1bc
ret
cmp dword [0x537c84], 0
je 0x43824e
call fcn.00492260
push esi
lea ecx, [esp + 0xc]
push ecx
push 0x40
lea edx, [esp + 0x18c]
push edx
push edi
push ebp
call dword [0x5385e0]
mov esi, eax
test esi, esi
je 0x43862e
cmp dword [esp + 0xc], 0x40
jne 0x43862e
mov eax, 0x5a4d
cmp word [esp + 0x184], ax
jne 0x43865a
lea edx, [esp + 0xc]
push edx
push 0xf8
lea ecx, [edi + 0x1000]
add edi, dword [esp + 0x1c8]
lea eax, [esp + 0x6c]
push eax
push edi
push ebp
mov dword [esp + 0x40], ecx
call dword [0x5385e0]
test eax, eax
je 0x43865a
cmp dword [esp + 0xc], 0xf8
jne 0x43865a
cmp dword [esp + 0x64], 0x4550
jne 0x43865a
push ebx
push 0x10000
call fcn.004b97b1
mov ebx, eax
mov ax, word [esp + 0x72]
xor ecx, ecx
add esp, 4
add edi, 0xf8
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], 0
cmp cx, ax
jae 0x4385bd
lea esp, [esp]
cmp dword [esp + 0x18], 0x14
jg 0x43859e
cmp dword [0x537c84], 0
je 0x438329
call fcn.00492260
lea edx, [esp + 0x10]
push edx
push 0x28
lea eax, [esp + 0x168]
push eax
push edi
push ebp
call dword [0x5385e0]
test eax, eax
je 0x4385bd
cmp dword [esp + 0x10], 0x28
jne 0x4385bd
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x16c]
mov esi, dword [esp + 0x168]
add edi, 0x28
mov dword [esp + 0x40], edi
lea edi, [edx + ecx]
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], 0
cmp esi, 0x10000
jbe 0x43838f
mov esi, 0x10000
cmp dword [0x537c84], 0
je 0x43839d
call fcn.00492260
lea eax, [esp + 0x10]
push eax
push esi
push ebx
push edi
push ebp
call dword [0x5385e0]
test eax, eax
je 0x438580
mov eax, dword [esp + 0x10]
test eax, eax
je 0x438580
cmp eax, esi
jne 0x438580
cmp dword [esp + 0x30], edi
jne 0x43844d
cmp dword [esp + 0x1d8], 0
je 0x43844d
cmp dword [0x539710], 5
jne 0x43844d
push 0x1c
lea ecx, [esp + 0x50]
push ecx
push edi
push ebp
mov dword [esp + 0x40], 0
call dword [0x5385ec]
cmp eax, 0x1c
jne 0x438449
mov eax, dword [esp + 0x60]
cmp eax, 4
je 0x438417
cmp eax, 8
je 0x438417
cmp eax, 0x40
je 0x438417
cmp eax, 0x80
jne 0x438449
lea edx, [esp + 0x48]
push edx
push 0x20
push 1
push edi
push ebp
call dword [0x5385e8]
mov eax, dword [esp + 0x60]
push eax
push edi
push 0x517614
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x10
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x1e0], 0
mov dword [esp + 0x1c], 0
jbe 0x438542
mov esi, dword [esp + 0x24]
add esi, 8
mov dword [esp + 0x34], esi
mov edi, edi
cmp dword [esi - 8], 0
je 0x438521
cmp dword [esi - 4], 0
je 0x438521
mov ecx, dword [esi]
cmp ecx, 0x270f
je 0x438521
test ecx, ecx
je 0x4384c4
cmp byte [0x537dfe], 0
jne 0x4384c4
push ecx
call fcn.0040a8e0
add esp, 4
test eax, eax
jne 0x4384c0
mov eax, dword [esi + 4]
test eax, eax
je 0x43851d
push eax
call fcn.0040a8e0
add esp, 4
test eax, eax
je 0x43851d
mov eax, dword [esp + 0x10]
mov ebp, dword [esi - 4]
cmp eax, ebp
jb 0x438521
mov edi, dword [esi - 8]
sub eax, ebp
xor edx, edx
mov dword [esp + 0x44], eax
sub ebx, edi
jmp 0x4384e0
mov dword [esp + 0x2c], ebp
mov eax, edi
lea esi, [ebx + edx]
lea esp, [esp]
mov cl, byte [eax]
cmp byte [esi + eax], cl
je 0x4384fc
cmp cl, 0x91
jne 0x43850a
sub dword [esp + 0x2c], 1
je 0x4385e1
inc eax
jmp 0x4384f0
inc edx
cmp edx, dword [esp + 0x44]
jbe 0x4384e0
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc ecx
add esi, 0x20
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x34], esi
cmp ecx, dword [esp + 0x1e0]
jb 0x438470
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x28], ecx
cmp ecx, 0x200000
ja 0x438580
cmp dword [esp + 0x14], eax
jbe 0x438580
mov ecx, dword [0x548d5c]
sub dword [esp + 0x14], eax
push 0
add edi, eax
push ecx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4385bd
mov esi, dword [esp + 0x14]
jmp 0x438382
mov ax, word [esp + 0x6e]
mov ecx, dword [esp + 0x18]
movzx edx, ax
inc ecx
cmp ecx, edx
mov dword [esp + 0x18], ecx
jge 0x4385bd
mov edi, dword [esp + 0x40]
jmp 0x438310
movzx eax, ax
push eax
push 0x5175f8
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0xc
push ebx
call fcn.004b97a6
add esp, 4
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.004b6da3
add esp, 0x1bc
ret
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ecx, esi
shl ecx, 5
mov ecx, dword [ecx + eax]
movzx eax, byte [ecx]
push ebp
push eax
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x16c]
push ecx
push edx
push 0x5175b8
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
mov eax, dword [esp + 0x54]
push eax
call fcn.004b97a6
add esp, 0x20
lea eax, [esi + 1]
jmp 0x4385c8
mov eax, dword [0x5385e0]
mov ecx, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x517598
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x18
mov ecx, dword [esp + 0x1c4]
pop esi
pop edi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004b6da3
add esp, 0x1bc
ret