Function at 0x100042e0
Capabilities:
Enumerate pe sections
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1003fa00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
xor ebp, ebp
push 0x40
push edi
mov dword [esp + 0x1c], ebp
call fcn.10004760
add esp, 8
test eax, eax
je 0x100046a4
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 0x3c]
add eax, 0xf8
push eax
push edi
call fcn.10004760
add esp, 8
test eax, eax
je 0x100046a4
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [esp + 0x10], edi
cmp dword [edi], 0x4550
jne 0x100046a4
cmp word [edi + 4], 0x14c
jne 0x100046a4
mov ebx, dword [edi + 0x38]
test bl, 1
jne 0x100046a4
xor ecx, ecx
xor eax, eax
mov cx, word [edi + 0x14]
mov ax, word [edi + 6]
cmp eax, ebp
lea ecx, [ecx + edi + 0x18]
jbe 0x1000439c
add ecx, 0xc
mov esi, eax
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
cmp edx, ebp
jne 0x1000438a
add eax, ebx
jmp 0x1000438c
add eax, edx
cmp eax, dword [esp + 0x14]
jbe 0x10004396
mov dword [esp + 0x14], eax
add ecx, 0x28
dec esi
jne 0x1000437d
lea edx, [esp + 0x28]
push edx
call fcn.100018a0
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x64], ebp
cmp eax, ebp
jne 0x100043ba
mov eax, 0x10043ac8
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
lea eax, [esp + 0x18]
push eax
call fcn.10003a80
add esp, 4
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x64], 1
cmp eax, ebp
jne 0x100043e2
mov eax, 0x10043ac8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x3c]
mov eax, dword [edi + 0x50]
push edx
push eax
call fcn.10004740
mov ecx, dword [esp + 0x1c]
mov ebp, eax
mov eax, dword [esp + 0x44]
push eax
push ecx
call fcn.10004740
add esp, 0x10
cmp ebp, eax
je 0x10004486
mov ecx, dword [esp + 0x1c]
xor esi, esi
cmp ecx, esi
je 0x10004441
mov al, byte [ecx - 1]
test al, al
je 0x10004437
cmp al, 0xff
je 0x10004437
dec al
mov byte [ecx - 1], al
jmp 0x10004441
dec ecx
push ecx
call fcn.10037b50
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], esi
cmp ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
je 0x100046a4
mov al, byte [ecx - 1]
test al, al
je 0x1000469a
cmp al, 0xff
je 0x1000469a
dec al
pop edi
pop esi
mov byte [ecx - 1], al
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov esi, dword [esp + 0x88]
mov edx, dword [edi + 0x34]
mov edi, dword [esp + 0x74]
push esi
push 4
push 0x3000
push ebp
push edx
call edi
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x100044c2
push esi
push 4
push 0x3000
push ebp
push eax
call edi
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x1000441b
push 0x40
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
jne 0x100044f6
push esi
xor esi, esi
push 0x8000
push esi
push ebx
call dword [esp + 0x88]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
jmp 0x10004641
mov eax, dword [esp + 0x10]
mov dword [ebp + 4], ebx
mov edx, dword [esp + 0x78]
mov cx, word [eax + 0x16]
mov dword [ebp + 0x20], edx
shr ecx, 0xd
mov edx, dword [esp + 0x80]
and ecx, 1
mov dword [ebp + 0x14], ecx
mov ecx, dword [esp + 0x7c]
mov dword [ebp + 0x24], ecx
mov ecx, dword [esp + 0x84]
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x2c], ecx
mov ecx, dword [esp + 0x70]
mov dword [ebp + 0x34], esi
mov edx, dword [esp + 0x3c]
mov dword [ebp + 0x3c], edx
mov eax, dword [eax + 0x54]
push eax
push ecx
call fcn.10004760
add esp, 8
test eax, eax
je 0x10004632
push esi
mov esi, dword [esp + 0x14]
push 4
push 0x1000
mov edx, dword [esi + 0x54]
push edx
push ebx
call edi
mov ecx, dword [esi + 0x54]
mov esi, dword [esp + 0x80]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx + 0x3c]
add eax, edx
mov edx, dword [esp + 0x88]
mov dword [ebp], eax
mov dword [eax + 0x34], ebx
mov eax, dword [esp + 0x28]
push eax
push edx
push ecx
call fcn.10004770
add esp, 0x24
test eax, eax
je 0x10004632
mov eax, dword [ebp]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x34]
mov edx, dword [ecx + 0x34]
sub eax, edx
je 0x100045d0
push eax
push ebp
call fcn.10004c90
add esp, 8
mov dword [ebp + 0x18], eax
jmp 0x100045d7
mov dword [ebp + 0x18], 1
push ebp
call fcn.10004d50
add esp, 4
test eax, eax
je 0x10004632
push ebp
call fcn.10004890
add esp, 4
test eax, eax
je 0x10004632
push ebp
call fcn.10004c40
add esp, 4
test eax, eax
je 0x10004632
mov edx, dword [ebp]
xor esi, esi
mov eax, dword [edx + 0x28]
cmp eax, esi
je 0x100046c9
cmp dword [ebp + 0x14], esi
je 0x100046c2
push esi
push 1
add eax, ebx
push ebx
call eax
test eax, eax
jne 0x100046b9
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebp
call fcn.10005e60
mov ecx, dword [esp + 0x20]
add esp, 4
xor esi, esi
cmp ecx, esi
je 0x10004661
mov al, byte [ecx - 1]
test al, al
je 0x10004657
cmp al, 0xff
je 0x10004657
dec al
mov byte [ecx - 1], al
jmp 0x10004661
dec ecx
push ecx
call fcn.10037b50
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], esi
cmp ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
je 0x100046a4
mov al, byte [ecx - 1]
test al, al
je 0x1000469a
cmp al, 0xff
je 0x1000469a
dec al
pop edi
pop esi
mov byte [ecx - 1], al
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
dec ecx
push ecx
call fcn.10037b50
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret
mov dword [ebp + 0x10], 1
jmp 0x100046cc
add eax, ebx
mov dword [ebp + 0x38], eax
jmp 0x100046cc
mov dword [ebp + 0x38], esi
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x100046f0
mov al, byte [ecx - 1]
test al, al
je 0x100046e6
cmp al, 0xff
je 0x100046e6
dec al
mov byte [ecx - 1], al
jmp 0x100046f0
dec ecx
push ecx
call fcn.10037b50
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], esi
cmp ecx, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
je 0x10004720
mov al, byte [ecx - 1]
test al, al
je 0x10004716
cmp al, 0xff
je 0x10004716
dec al
mov byte [ecx - 1], al
jmp 0x10004720
dec ecx
push ecx
call fcn.10037b50
add esp, 4
mov ecx, dword [esp + 0x5c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret