Function at 0x4259e0
Capabilities:
Allocate or change rwx memory
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x4a99f8]
xor eax, esp
mov dword [esp + 0xc8], eax
xor eax, eax
push ebx
mov ebx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 8], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xc]
push esi
push edi
add eax, 0x10
mov edi, 3
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
cmp eax, dword [ebx + 8]
jae 0x425a32
cmp eax, 0x492970
je 0x425a32
cmp dword [eax + 8], 6
je 0x425a4b
mov eax, dword [str.function]
push eax
mov edi, 2
mov esi, ebx
call fcn.00420c20
mov edi, dword [esp + 0x24]
add esp, 4
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
add eax, 0x20
cmp eax, ecx
jae 0x425b46
cmp eax, 0x492970
je 0x425b46
cmp dword [eax + 8], 0
jle 0x425b46
cmp eax, ecx
jb 0x425a7a
mov eax, 0x492970
mov ecx, dword [eax + 8]
cmp ecx, 4
je 0x425ac9
cmp ecx, 7
jne 0x425a94
mov ecx, dword [eax]
cmp dword [ecx + 8], 0
jne 0x425a94
lea eax, [ecx + 0x18]
jmp 0x425ace
mov esi, eax
mov edi, ebx
call fcn.00431f20
test eax, eax
jne 0x425aa7
mov dword [esp + 0x14], eax
jmp 0x425ad6
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x425ab9
mov eax, ebx
call fcn.00431cf0
mov eax, dword [ebx + 0xc]
add eax, 0x20
cmp eax, dword [ebx + 8]
jb 0x425ac9
mov eax, 0x492970
mov eax, dword [eax]
add eax, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x425af0
mov edx, dword [str.string]
push edx
mov edi, 3
mov esi, ebx
call fcn.00420c20
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
add eax, 0x20
mov esi, 0x492970
cmp eax, dword [ebx + 8]
jae 0x425b06
mov esi, eax
mov eax, dword [esi + 8]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x425b11.6
jmp dword [eax*4 + 0x426394]
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
jmp 0x425b43
mov ecx, dword [esi]
mov eax, dword [ecx + 0x10]
jmp 0x425b43
mov eax, dword [esi]
call fcn.004301d0
jmp 0x425b43
mov edi, ebx
call fcn.00431f20
test eax, eax
je case.0x425b11.6
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
jmp 0x425b43
xor eax, eax
lea edi, [eax + 1]
push 0x2c
call fcn.0046aa8c
push 0x2c
mov esi, eax
push 0
push esi
mov dword [esp + 0x34], esi
call fcn.00472290
lea eax, [edi*4]
push eax
call fcn.0046aa8c
push edi
mov dword [esi + 0x1c], eax
call fcn.0046aa8c
push edi
mov dword [esi + 0x18], eax
call fcn.0046aa8c
add esp, 0x1c
cmp dword [ebp + 0x10], 0
mov dword [esi + 0x14], eax
jne 0x425b99
lea eax, [esi + 4]
mov dword [eax], ebx
mov dword [esi + 0x24], 0
jmp 0x425d50
push 0x38
mov dword [esp + 0x1c], 0
call fcn.0046aa8c
push 0x38
push 0
push eax
mov dword [esi + 0x24], eax
call fcn.00472290
mov ecx, dword [esi + 0x24]
add esp, 0x10
add ecx, 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
add ecx, 0x10
cmp ecx, eax
jb 0x425bd7
mov ecx, 0x492970
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov ecx, ebx
add dword [ecx + 8], 0x10
push 0
xor edx, edx
call fcn.0044bbe0
mov edi, dword [esp + 0x20]
push 0xffffffffffffffff
lea ebx, [esp + 0x20]
mov eax, edi
call fcn.0041e080
mov ebx, dword [esp + 0x20]
push ebx
mov dword [esp + 0x20], eax
call fcn.0046aa8c
mov edx, dword [esi + 0x24]
mov dword [edx], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
push ebx
push eax
push edx
call fcn.00475660
mov eax, dword [esi + 0x24]
mov dword [eax + 4], ebx
add dword [edi + 8], 0xffffffe0
mov ecx, dword [edi + 0x38]
mov ebx, dword [edi + 8]
add esp, 0x18
test ecx, ecx
je 0x425c9e
mov eax, dword [edi + 0x10]
mov esi, dword [eax + 0x60]
push ecx
call fcn.0042fdf0
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov eax, dword [eax + 8]
mov dword [ebx + 8], eax
add dword [edi + 8], 0x10
push 0xffffffffffffffff
lea ebx, [esp + 0x28]
mov eax, edi
call fcn.0041e080
mov ebx, dword [esp + 0x28]
push ebx
mov esi, eax
call fcn.0046aa8c
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x24]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x24]
mov ecx, dword [eax + 0x10]
push ebx
push esi
push ecx
call fcn.00475660
mov esi, dword [esp + 0x3c]
add esp, 0x18
add dword [edi + 8], 0xfffffff0
push 7
push str.onError
push edi
lea ebx, [edi + 0x40]
call fcn.00441320
mov edx, dword [edi + 8]
push 0
push edx
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
push eax
push ebx
push edi
mov dword [esp + 0x60], 4
call fcn.004321c0
add dword [edi + 8], 0x10
mov eax, dword [edi + 8]
add eax, 0xfffffff0
add esp, 0x20
cmp eax, 0x492970
je 0x425d33
cmp dword [eax + 8], 6
jne 0x425d33
push 0
xor edx, edx
mov ecx, edi
call fcn.0044bbe0
push 0xffffffffffffffff
lea ebx, [esp + 0x20]
mov eax, edi
call fcn.0041e080
mov ebx, dword [esp + 0x20]
push ebx
mov dword [esp + 0x20], eax
call fcn.0046aa8c
mov ecx, dword [esi + 0x24]
mov edx, dword [esp + 0x20]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 8]
push ebx
push edx
push ecx
call fcn.00475660
mov edx, dword [esi + 0x24]
add esp, 0x18
mov dword [edx + 0xc], ebx
add dword [edi + 8], 0xfffffff0
jmp 0x425d41
mov ecx, dword [esi + 0x24]
xor eax, eax
mov dword [ecx + 8], eax
mov edx, dword [esi + 0x24]
mov dword [edx + 0xc], eax
add dword [edi + 8], 0xfffffff0
lea eax, [esi + 4]
mov dword [eax], 0
mov ebx, edi
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov al, byte [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], edx
mov byte [esp + 0xf], al
test al, al
je 0x425da8
mov edi, dword [esp + 0x10]
jmp 0x425d84
mov al, byte [esp + 0xf]
movzx ecx, al
push ecx
call fcn.0046c81f
add esp, 4
test eax, eax
je 0x425da0
mov al, byte [edi + 1]
inc edi
mov byte [esp + 0xf], al
test al, al
jne 0x425d80
mov al, byte [esp + 0xf]
mov dword [esp + 0x10], edi
cmp al, 0x66
je 0x425db0
cmp al, 0x64
jne 0x425dc2
push str._Unsupported_return_type_
push ebx
call fcn.00420d30
mov al, byte [esp + 0x17]
add esp, 8
cmp al, 0x76
je 0x425dce
cmp al, 0x28
je 0x425dce
xor eax, eax
jmp 0x425dd3
mov eax, 1
mov edi, dword [esp + 0x10]
mov dword [esi + 0x28], eax
mov al, byte [edi]
test al, al
je 0x425df4
cmp al, 0x28
je 0x425ea9
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x425de0
mov dword [esp + 0x10], edi
cmp byte [edi], 0x28
je 0x425ead
mov esi, dword [esp + 0x24]
push ebx
call fcn.00423b40
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x28]
add esp, 4
cmp eax, ecx
jbe 0x425e81
sub eax, ecx
mov ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc8], eax
push 0x493ec8
lea eax, [esp + 0x74]
mov edi, ebx
call fcn.00440180
mov eax, dword [esp + 0x78]
add esp, 4
test eax, eax
jne 0x425e54
mov eax, 0x493cd8
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x10]
push ecx
push 2
push eax
push str._nCalling:_s_nBad_argument:__d_n_s
push ebx
call fcn.00420d30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00468a81
mov esp, ebp
pop ebp
ret
push edi
push 2
push str._nBad_argument:__d__s
push ebx
call fcn.00420d30
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00468a81
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x10]
mov bl, byte [esi]
test bl, bl
je 0x425f13
cmp bl, 0x29
je 0x425f13
movzx eax, bl
sub eax, 0x26
je 0x42607f
sub eax, 2
je 0x425ed6
sub eax, 4
jne 0x426087
lea edx, [esp + 0x10]
inc esi
push edx
lea edi, [esp + 0x13]
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
call fcn.00423960
mov bl, al
add esp, 4
test bl, bl
je 0x425f13
cmp bl, 0x29
je 0x425f07
cmp bl, 0x76
jne 0x425f6e
cmp byte [esp + 0xf], 0x64
jne 0x425f7b
mov esi, dword [esp + 0x10]
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x425eb7
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov byte [esi], 0
mov byte [eax], 0
mov eax, dword [ebx + 0x14]
sub esi, eax
lea edi, [esi + 1]
push edi
push eax
call fcn.0046c0a8
mov ecx, dword [ebx + 0x18]
push edi
push ecx
mov dword [ebx + 0x14], eax
call fcn.0046c0a8
add esp, 0x10
cmp dword [esp + 0x34], 0
mov dword [ebx + 0x18], eax
je 0x426094
mov eax, dword [ebx + 0x1c]
lea edx, [esi*4 + 4]
push edx
push eax
call fcn.0046c0a8
add esp, 8
mov dword [ebx + 0x1c], eax
jmp 0x4260a7
cmp bl, 0x50
je 0x425f78
cmp bl, 0x53
jne 0x425f7b
add bl, 0x20
mov eax, dword [esp + 0x28]
mov dword [eax], 0
cmp bl, 0x7b
jne 0x425fec
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0x7d
jne 0x425fec
movzx edx, byte [esi]
push edx
call fcn.0046c81f
add esp, 4
test eax, eax
je 0x425fb9
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.0046c81f
add esp, 4
test eax, eax
jne 0x425fa3
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
sub esi, edi
push esi
mov dword [esp + 0x38], 1
call fcn.0046aa8c
mov ebx, dword [esp + 0x2c]
push esi
inc edi
push edi
push eax
mov dword [ebx], eax
call fcn.00475660
mov ecx, dword [ebx]
add esp, 0x10
mov byte [ecx + esi - 1], 0
mov bl, 0x74
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov byte [edx], bl
mov byte [eax], bl
movsx eax, bl
add eax, 0xffffffbe
cmp eax, 0x37
ja case.0x42600a.67
movzx ecx, byte [eax + 0x4263c0]
jmp dword [ecx*4 + 0x4263a8]
mov edi, 1
jmp 0x426059
mov edi, 2
jmp 0x426059
mov edi, 4
jmp 0x426059
mov edi, 8
jmp 0x426059
xor edi, edi
jmp 0x426034
or edi, 0xffffffff
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
push edx
call fcn.00423b40
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push eax
push str.callback_:__struct_error_..._s
push ecx
call fcn.00420d30
add esp, 0x10
add dword [esp + 0x28], 4
add edi, 3
mov eax, 1
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
shr edi, 2
add dword [esp + 0x2c], edi
sub dword [esp + 0x10], eax
mov esi, dword [esp + 0x10]
jmp 0x426087
mov edx, dword [esp + 0x18]
mov byte [edx - 1], 0x26
test bl, bl
je 0x425f13
jmp 0x425f0b
mov ecx, dword [ebx + 0x1c]
push ecx
call fcn.0046aa52
add esp, 4
mov dword [ebx + 0x1c], 0
inc esi
cmp dword [ebp + 0x10], 0
mov word [ebx + 0x20], si
mov esi, dword [esp + 0x1c]
jne 0x4260ee
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
add ecx, 0x10
cmp ecx, eax
jb 0x4260c8
mov ecx, 0x492970
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
add dword [esi + 8], 0x10
push 0xffffd8f0
mov eax, esi
call fcn.00422510
add esp, 4
mov dword [ebx + 8], eax
mov edx, dword [esi + 0x10]
cmp dword [edx + 0x11c], 0
jne 0x426187
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x50]
push 0x40
push 0x1000
push eax
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [esi + 0x10]
mov ecx, eax
mov eax, dword [edx + 0x118]
test eax, eax
jne 0x426136
mov dword [edx + 0x118], ecx
jmp 0x426149
cmp dword [eax], 0
je 0x426147
jmp 0x426140
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x426140
mov dword [eax], ecx
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
add ecx, 4
add edi, 0xffffffee
mov dword [edx + 0x11c], ecx
cmp edi, 0xe
jbe 0x426181
add edi, 0xfffffff1
mov eax, 0x24924925
mul edi
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 3
inc edi
dec edi
lea eax, [ecx + 0xe]
mov dword [ecx], eax
mov ecx, eax
jne 0x426177
mov dword [ecx], 0
cmp dword [ebp + 8], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x11c]
mov dword [ebx], ecx
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 0x11c]
mov ecx, dword [edx]
mov dword [eax + 0x11c], ecx
je 0x426233
cmp dword [ebx], 0
jne 0x4261c0
push str.tocdecl_failed_
push esi
call fcn.00420d30
add esp, 8
mov eax, dword [ebx]
mov byte [eax], 0xe8
movzx ecx, byte [eax]
cmp ecx, 0xe8
jl 0x4261fc
cmp ecx, 0xe9
jle 0x4261ef
cmp ecx, 0xeb
jne 0x4261fc
mov edx, 0x425750
sub dl, al
sub dl, 2
mov byte [eax + 1], dl
jmp 0x4261fc
mov ecx, 0x425750
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
mov edx, dword [esp + 0x30]
mov byte [eax + 5], 0xc3
mov dword [eax + 6], 0x425730
mov dword [eax + 0xa], edx
push ebx
mov ebx, esi
call fcn.00425760
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00468a81
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 0
jne 0x426246
push str.tostdcall_failed_
push esi
call fcn.00420d30
add esp, 8
mov eax, dword [ebx]
mov ecx, dword [esp + 0x2c]
mov byte [eax], 0x58
inc eax
cmp dword [ebp + 0xc], 0
je 0x42626b
cmp ecx, 1
jle 0x426265
mov word [eax], 0x5152
add eax, 2
jmp 0x42626b
jne 0x42626b
mov byte [eax], 0x51
inc eax
mov edx, dword [esp + 0x30]
mov byte [eax], 0x68
mov dword [eax + 1], edx
mov byte [eax + 5], 0x50
add eax, 6
mov byte [eax], 0xe9
cmp ecx, 0x14
ja case.default.0x426288
jmp dword [ecx*4 + 0x4263f8]
mov ecx, 0x4254b0
jmp 0x426326
mov ecx, 0x4254d0
jmp 0x426326
mov ecx, 0x4254f0
jmp 0x426326
mov ecx, 0x425510
jmp 0x426326
mov ecx, 0x425530
jmp 0x426326
mov ecx, 0x425550
jmp 0x426326
mov ecx, 0x425570
jmp 0x426326
mov ecx, 0x425590
jmp 0x426326
mov ecx, 0x4255b0
jmp 0x426326
mov ecx, 0x4255d0
jmp 0x426326
mov ecx, 0x4255f0
jmp 0x426326
mov ecx, 0x425610
jmp 0x426326
mov ecx, 0x425630
jmp 0x426326
mov ecx, 0x425650
jmp 0x426326
mov ecx, 0x425670
jmp 0x426326
mov ecx, 0x425690
jmp 0x426326
mov ecx, 0x4256b0
jmp 0x426326
mov ecx, 0x4256d0
jmp 0x426326
mov ecx, 0x4256f0
jmp 0x426326
mov ecx, 0x425710
jmp 0x426326
mov ecx, 0x425490
movzx edx, byte [eax]
cmp edx, 0xe8
jl 0x42620e
cmp edx, 0xe9
jle 0x426356
cmp edx, 0xeb
jne 0x42620e
sub cl, al
sub cl, 2
mov byte [eax + 1], cl
jmp 0x42620e
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
jmp 0x42620e
mov edi, dword [esp + 0x1c]
push edi
mov esi, ebx
call fcn.00423b40
push str.argument_list_too_long
push edi
call fcn.00420d30
mov ecx, dword [esp + 0xe0]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00468a81
mov esp, ebp
pop ebp
ret