Function at 0x425c40
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 0x425c92
cmp eax, 0x492988
je 0x425c92
cmp dword [eax + 8], 6
je 0x425cab
mov eax, dword [0x49290c]
push eax
mov edi, 2
mov esi, ebx
call fcn.00420e80
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 0x425da6
cmp eax, 0x492988
je 0x425da6
cmp dword [eax + 8], 0
jle 0x425da6
cmp eax, ecx
jb 0x425cda
mov eax, 0x492988
mov ecx, dword [eax + 8]
cmp ecx, 4
je 0x425d29
cmp ecx, 7
jne 0x425cf4
mov ecx, dword [eax]
cmp dword [ecx + 8], 0
jne 0x425cf4
lea eax, [ecx + 0x18]
jmp 0x425d2e
mov esi, eax
mov edi, ebx
call fcn.00432180
test eax, eax
jne 0x425d07
mov dword [esp + 0x14], eax
jmp 0x425d36
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x425d19
mov eax, ebx
call fcn.00431f50
mov eax, dword [ebx + 0xc]
add eax, 0x20
cmp eax, dword [ebx + 8]
jb 0x425d29
mov eax, 0x492988
mov eax, dword [eax]
add eax, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x425d50
mov edx, dword [0x492904]
push edx
mov edi, 3
mov esi, ebx
call fcn.00420e80
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
add eax, 0x20
mov esi, 0x492988
cmp eax, dword [ebx + 8]
jae 0x425d66
mov esi, eax
mov eax, dword [esi + 8]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x425d71.6
jmp dword [eax*4 + 0x4265f4]
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
jmp 0x425da3
mov ecx, dword [esi]
mov eax, dword [ecx + 0x10]
jmp 0x425da3
mov eax, dword [esi]
call fcn.00430430
jmp 0x425da3
mov edi, ebx
call fcn.00432180
test eax, eax
je case.0x425d71.6
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
jmp 0x425da3
xor eax, eax
lea edi, [eax + 1]
push 0x2c
call fcn.0046ad29
push 0x2c
mov esi, eax
push 0
push esi
mov dword [esp + 0x34], esi
call fcn.00472530
lea eax, [edi*4]
push eax
call fcn.0046ad29
push edi
mov dword [esi + 0x1c], eax
call fcn.0046ad29
push edi
mov dword [esi + 0x18], eax
call fcn.0046ad29
add esp, 0x1c
cmp dword [ebp + 0x10], 0
mov dword [esi + 0x14], eax
jne 0x425df9
lea eax, [esi + 4]
mov dword [eax], ebx
mov dword [esi + 0x24], 0
jmp 0x425fb0
push 0x38
mov dword [esp + 0x1c], 0
call fcn.0046ad29
push 0x38
push 0
push eax
mov dword [esi + 0x24], eax
call fcn.00472530
mov ecx, dword [esi + 0x24]
add esp, 0x10
add ecx, 0x20
push ecx
call dword [sym.imp.KERNEL32.dl_InitializeCriticalSection]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
add ecx, 0x10
cmp ecx, eax
jb 0x425e37
mov ecx, 0x492988
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.0044be80
mov edi, dword [esp + 0x20]
push 0xffffffffffffffff
lea ebx, [esp + 0x20]
mov eax, edi
call fcn.0041e2e0
mov ebx, dword [esp + 0x20]
push ebx
mov dword [esp + 0x20], eax
call fcn.0046ad29
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.00475900
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 0x425efe
mov eax, dword [edi + 0x10]
mov esi, dword [eax + 0x60]
push ecx
call fcn.00430050
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.0041e2e0
mov ebx, dword [esp + 0x28]
push ebx
mov esi, eax
call fcn.0046ad29
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.00475900
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.00441580
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.00432420
add dword [edi + 8], 0x10
mov eax, dword [edi + 8]
add eax, 0xfffffff0
add esp, 0x20
cmp eax, 0x492988
je 0x425f93
cmp dword [eax + 8], 6
jne 0x425f93
push 0
xor edx, edx
mov ecx, edi
call fcn.0044be80
push 0xffffffffffffffff
lea ebx, [esp + 0x20]
mov eax, edi
call fcn.0041e2e0
mov ebx, dword [esp + 0x20]
push ebx
mov dword [esp + 0x20], eax
call fcn.0046ad29
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.00475900
mov edx, dword [esi + 0x24]
add esp, 0x18
mov dword [edx + 0xc], ebx
add dword [edi + 8], 0xfffffff0
jmp 0x425fa1
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 0x426008
mov edi, dword [esp + 0x10]
jmp 0x425fe4
mov al, byte [esp + 0xf]
movzx ecx, al
push ecx
call fcn.0046cabf
add esp, 4
test eax, eax
je 0x426000
mov al, byte [edi + 1]
inc edi
mov byte [esp + 0xf], al
test al, al
jne 0x425fe0
mov al, byte [esp + 0xf]
mov dword [esp + 0x10], edi
cmp al, 0x66
je 0x426010
cmp al, 0x64
jne 0x426022
push str._Unsupported_return_type_
push ebx
call fcn.00420f90
mov al, byte [esp + 0x17]
add esp, 8
cmp al, 0x76
je 0x42602e
cmp al, 0x28
je 0x42602e
xor eax, eax
jmp 0x426033
mov eax, 1
mov edi, dword [esp + 0x10]
mov dword [esi + 0x28], eax
mov al, byte [edi]
test al, al
je 0x426054
cmp al, 0x28
je 0x426109
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x426040
mov dword [esp + 0x10], edi
cmp byte [edi], 0x28
je 0x42610d
mov esi, dword [esp + 0x24]
push ebx
call fcn.00423da0
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x28]
add esp, 4
cmp eax, ecx
jbe 0x4260e1
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 0x493ee0
lea eax, [esp + 0x74]
mov edi, ebx
call fcn.004403e0
mov eax, dword [esp + 0x78]
add esp, 4
test eax, eax
jne 0x4260b4
mov eax, 0x493cf0
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.00420f90
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00468d21
mov esp, ebp
pop ebp
ret
push edi
push 2
push str._nBad_argument:__d__s
push ebx
call fcn.00420f90
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00468d21
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x10]
mov bl, byte [esi]
test bl, bl
je 0x426173
cmp bl, 0x29
je 0x426173
movzx eax, bl
sub eax, 0x26
je 0x4262df
sub eax, 2
je 0x426136
sub eax, 4
jne 0x4262e7
lea edx, [esp + 0x10]
inc esi
push edx
lea edi, [esp + 0x13]
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
call fcn.00423bc0
mov bl, al
add esp, 4
test bl, bl
je 0x426173
cmp bl, 0x29
je 0x426167
cmp bl, 0x76
jne 0x4261ce
cmp byte [esp + 0xf], 0x64
jne 0x4261db
mov esi, dword [esp + 0x10]
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x426117
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.0046c348
mov ecx, dword [ebx + 0x18]
push edi
push ecx
mov dword [ebx + 0x14], eax
call fcn.0046c348
add esp, 0x10
cmp dword [esp + 0x34], 0
mov dword [ebx + 0x18], eax
je 0x4262f4
mov eax, dword [ebx + 0x1c]
lea edx, [esi*4 + 4]
push edx
push eax
call fcn.0046c348
add esp, 8
mov dword [ebx + 0x1c], eax
jmp 0x426307
cmp bl, 0x50
je 0x4261d8
cmp bl, 0x53
jne 0x4261db
add bl, 0x20
mov eax, dword [esp + 0x28]
mov dword [eax], 0
cmp bl, 0x7b
jne 0x42624c
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0x7d
jne 0x42624c
movzx edx, byte [esi]
push edx
call fcn.0046cabf
add esp, 4
test eax, eax
je 0x426219
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.0046cabf
add esp, 4
test eax, eax
jne 0x426203
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.0046ad29
mov ebx, dword [esp + 0x2c]
push esi
inc edi
push edi
push eax
mov dword [ebx], eax
call fcn.00475900
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.0x42626a.67
movzx ecx, byte [eax + 0x426620]
jmp dword [ecx*4 + 0x426608]
mov edi, 1
jmp 0x4262b9
mov edi, 2
jmp 0x4262b9
mov edi, 4
jmp 0x4262b9
mov edi, 8
jmp 0x4262b9
xor edi, edi
jmp 0x426294
or edi, 0xffffffff
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
push edx
call fcn.00423da0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push eax
push str.callback_:__struct_error_..._s
push ecx
call fcn.00420f90
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 0x4262e7
mov edx, dword [esp + 0x18]
mov byte [edx - 1], 0x26
test bl, bl
je 0x426173
jmp 0x42616b
mov ecx, dword [ebx + 0x1c]
push ecx
call fcn.0046acef
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 0x42634e
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
add ecx, 0x10
cmp ecx, eax
jb 0x426328
mov ecx, 0x492988
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.00422770
add esp, 4
mov dword [ebx + 8], eax
mov edx, dword [esi + 0x10]
cmp dword [edx + 0x11c], 0
jne 0x4263e7
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dl_GetSystemInfo]
mov eax, dword [esp + 0x50]
push 0x40
push 0x1000
push eax
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dl_VirtualAlloc]
mov edx, dword [esi + 0x10]
mov ecx, eax
mov eax, dword [edx + 0x118]
test eax, eax
jne 0x426396
mov dword [edx + 0x118], ecx
jmp 0x4263a9
cmp dword [eax], 0
je 0x4263a7
jmp 0x4263a0
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x4263a0
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 0x4263e1
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 0x4263d7
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 0x426493
cmp dword [ebx], 0
jne 0x426420
push str.tocdecl_failed_
push esi
call fcn.00420f90
add esp, 8
mov eax, dword [ebx]
mov byte [eax], 0xe8
movzx ecx, byte [eax]
cmp ecx, 0xe8
jl 0x42645c
cmp ecx, 0xe9
jle 0x42644f
cmp ecx, 0xeb
jne 0x42645c
mov edx, 0x4259b0
sub dl, al
sub dl, 2
mov byte [eax + 1], dl
jmp 0x42645c
mov ecx, 0x4259b0
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], 0x425990
mov dword [eax + 0xa], edx
push ebx
mov ebx, esi
call fcn.004259c0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.00468d21
mov esp, ebp
pop ebp
ret
cmp dword [ebx], 0
jne 0x4264a6
push str.tostdcall_failed_
push esi
call fcn.00420f90
add esp, 8
mov eax, dword [ebx]
mov ecx, dword [esp + 0x2c]
mov byte [eax], 0x58
inc eax
cmp dword [ebp + 0xc], 0
je 0x4264cb
cmp ecx, 1
jle 0x4264c5
mov word [eax], 0x5152
add eax, 2
jmp 0x4264cb
jne 0x4264cb
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.0x4264e8
jmp dword [ecx*4 + 0x426658]
mov ecx, 0x425710
jmp 0x426586
mov ecx, 0x425730
jmp 0x426586
mov ecx, 0x425750
jmp 0x426586
mov ecx, 0x425770
jmp 0x426586
mov ecx, 0x425790
jmp 0x426586
mov ecx, 0x4257b0
jmp 0x426586
mov ecx, 0x4257d0
jmp 0x426586
mov ecx, 0x4257f0
jmp 0x426586
mov ecx, 0x425810
jmp 0x426586
mov ecx, 0x425830
jmp 0x426586
mov ecx, 0x425850
jmp 0x426586
mov ecx, 0x425870
jmp 0x426586
mov ecx, 0x425890
jmp 0x426586
mov ecx, 0x4258b0
jmp 0x426586
mov ecx, 0x4258d0
jmp 0x426586
mov ecx, 0x4258f0
jmp 0x426586
mov ecx, 0x425910
jmp 0x426586
mov ecx, 0x425930
jmp 0x426586
mov ecx, 0x425950
jmp 0x426586
mov ecx, 0x425970
jmp 0x426586
mov ecx, 0x4256f0
movzx edx, byte [eax]
cmp edx, 0xe8
jl 0x42646e
cmp edx, 0xe9
jle 0x4265b6
cmp edx, 0xeb
jne 0x42646e
sub cl, al
sub cl, 2
mov byte [eax + 1], cl
jmp 0x42646e
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
jmp 0x42646e
mov edi, dword [esp + 0x1c]
push edi
mov esi, ebx
call fcn.00423da0
push str.argument_list_too_long
push edi
call fcn.00420f90
mov ecx, dword [esp + 0xe0]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00468d21
mov esp, ebp
pop ebp
ret