Function at 0x421a10
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4979d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x64], eax
lea esi, [eax + 3]
mov eax, dword [edi + 0xc]
add eax, 0x10
cmp eax, ecx
jae 0x421a51
cmp eax, 0x4819b8
je 0x421a4d
cmp dword [eax + 8], 6
je 0x421aa3
cmp eax, ecx
jb 0x421a56
mov eax, 0x4819b8
mov ecx, dword [eax + 8]
cmp ecx, 6
jne 0x421a6d
mov edx, dword [eax]
cmp byte [edx + 7], 0
je 0x421a6d
mov eax, 0x4837e4
jmp 0x421a80
cmp eax, 0x4819b8
mov eax, str.no_value
je 0x421a80
mov eax, dword [ecx*4 + 0x4817fc]
push eax
mov eax, dword [0x481814]
push eax
push str._nexpected:_s_ngot:_s
push edi
call fcn.0041b650
add esp, 0x10
mov ebx, eax
mov ecx, 2
mov edx, edi
call fcn.0041d6e0
mov eax, dword [edi + 0xc]
add eax, 0x20
cmp eax, dword [edi + 8]
jae 0x421b1c
cmp eax, 0x4819b8
je 0x421b1c
cmp dword [eax + 8], 0
jle 0x421b1c
push 0
push 3
mov eax, edi
call fcn.0041e280
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 0xc]
add eax, 0x20
add esp, 8
mov esi, 0x4819b8
cmp eax, dword [edi + 8]
jae 0x421ade
mov esi, eax
mov eax, dword [esi + 8]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x421ae9.6
jmp dword [eax*4 + 0x422118]
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
jmp 0x421b19
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
jmp 0x421b19
mov eax, dword [esi]
call fcn.00429a00
jmp 0x421b19
call fcn.0042b810
test eax, eax
je case.0x421ae9.6
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
jmp 0x421b19
xor eax, eax
lea esi, [eax + 1]
push 0x30
call fcn.0045b480
push 0x30
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x68], ebx
call fcn.00464b10
push esi
call fcn.0045b480
push esi
mov dword [ebx + 0x18], eax
call fcn.0045b480
add esp, 0x18
cmp dword [ebp + 0x10], 0
mov dword [ebx + 0x14], eax
jne 0x421b55
mov dword [ebx + 4], edi
jmp 0x421c17
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
add ecx, 0x10
mov dword [ebp - 0x6c], 0
cmp ecx, eax
jb 0x421b6e
mov ecx, 0x4819b8
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 [edi + 8], 0x10
xor edx, edx
mov ecx, edi
call fcn.0043ba00
lea edx, [ebp - 0x6c]
push edx
or ebx, 0xffffffff
mov eax, edi
call fcn.0041b480
mov ebx, dword [ebp - 0x6c]
push ebx
mov esi, eax
call fcn.0045b480
mov ecx, dword [ebp - 0x68]
push ebx
push esi
push eax
mov dword [ecx + 0x20], eax
call fcn.00464c80
mov edx, dword [ebp - 0x68]
mov dword [edx + 0x24], ebx
add dword [edi + 8], 0xffffffe0
mov ecx, dword [edi + 0x38]
mov ebx, dword [edi + 8]
add esp, 0x14
test ecx, ecx
je 0x421c17
mov eax, dword [edi + 0x10]
mov esi, dword [eax + 0x60]
push ecx
call fcn.00429680
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
lea ecx, [ebp - 0x78]
push ecx
or ebx, 0xffffffff
mov eax, edi
call fcn.0041b480
mov ebx, dword [ebp - 0x78]
push ebx
mov esi, eax
call fcn.0045b480
mov edx, dword [ebp - 0x68]
push ebx
push esi
push eax
mov dword [edx + 0x28], eax
call fcn.00464c80
add esp, 0x18
add dword [edi + 8], 0xfffffff0
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov esi, dword [ebp - 0x64]
mov al, byte [esi]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x6c], edx
cmp al, 0x66
je 0x421c33
cmp al, 0x64
jne 0x421c41
push str.Callback_must_return_an_integer_or_pointer_
push edi
call fcn.0041d920
add esp, 8
mov al, byte [esi]
test al, al
je 0x421c5a
cmp al, 0x28
je 0x421cfb
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x421c47
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x28
je 0x421cfe
mov esi, dword [ebp - 0x68]
call fcn.00420390
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x28]
cmp eax, ecx
jbe 0x421cd4
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 [ebp - 8], eax
push 0x482cac
lea eax, [ebp - 0x60]
call fcn.004300b0
mov eax, dword [ebp - 0x5c]
add esp, 4
test eax, eax
jne 0x421cac
mov eax, 0x482af4
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x64]
push edx
push 2
push eax
push str._ncalling:_s_nbad_argument:__d_n_s
push edi
call fcn.0041d920
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459753
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x64]
push ecx
push 2
push str._nbad_argument:__d__s
push edi
call fcn.0041d920
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459753
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x64], esi
mov bl, byte [esi]
test bl, bl
je 0x421d60
cmp bl, 0x29
je 0x421d60
movzx eax, bl
sub eax, 0x26
je 0x421ea7
sub eax, 2
je 0x421d23
sub eax, 4
jne 0x421eae
lea eax, [ebp - 0x6d]
push eax
lea ecx, [ebp - 0x64]
inc esi
push ecx
mov dword [ebp - 0x64], esi
call fcn.004201e0
mov bl, al
add esp, 8
test bl, bl
je 0x421d60
cmp bl, 0x29
je 0x421d55
cmp bl, 0x76
jne 0x421e12
cmp byte [ebp - 0x6d], 0x64
jne 0x421e1f
mov esi, dword [ebp - 0x64]
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x421d04
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x68]
mov byte [ecx], 0
mov byte [edx], 0
mov eax, dword [esi + 0x14]
sub ecx, eax
lea ebx, [ecx + 1]
push ebx
push eax
call fcn.0045c89d
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], ebx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
add eax, 0x10
add esp, 8
cmp eax, ecx
jb 0x421d99
mov eax, 0x4819b8
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
add dword [edi + 8], 0x10
push 0xffffd8f0
mov eax, edi
call fcn.0041f270
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x10]
add esp, 4
cmp dword [ecx + 0x110], 0
jne 0x421f01
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x9c]
push 0x40
push 0x1000
push eax
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [edi + 0x10]
mov ecx, eax
mov eax, dword [edx + 0x10c]
test eax, eax
jne 0x421ebb
mov dword [edx + 0x10c], ecx
jmp 0x421ec9
cmp bl, 0x50
je 0x421e1c
cmp bl, 0x53
jne 0x421e1f
add bl, 0x20
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x6c]
mov byte [edx], bl
mov byte [eax], bl
movsx eax, bl
add eax, 0xffffffbe
cmp eax, 0x37
ja case.0x421e3b.67
movzx ecx, byte [eax + 0x422144]
jmp dword [ecx*4 + 0x42212c]
mov eax, 1
jmp 0x421e8b
mov eax, 2
jmp 0x421e8b
mov eax, 4
jmp 0x421e8b
mov eax, 8
jmp 0x421e8b
mov dword [ebp - 0x78], 0
jmp 0x421e6e
mov dword [ebp - 0x78], 0xffffffff
mov esi, dword [ebp - 0x68]
call fcn.00420390
mov edx, dword [ebp - 0x64]
push edx
push str.callback_:__struct_error_..._s
push edi
call fcn.0041d920
mov eax, dword [ebp - 0x78]
add esp, 0xc
add eax, 3
shr eax, 2
add dword [ebp - 0x7c], eax
mov eax, 1
add dword [ebp - 0x6c], eax
add dword [ebp - 0x74], eax
sub dword [ebp - 0x64], eax
mov esi, dword [ebp - 0x64]
jmp 0x421eae
mov eax, dword [ebp - 0x74]
mov byte [eax - 1], 0x26
test bl, bl
je 0x421d60
jmp 0x421d58
cmp dword [eax], 0
je 0x421ec7
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x421ec0
mov dword [eax], ecx
mov dword [ecx], 0
mov eax, dword [edi + 0x10]
add ecx, 4
mov dword [eax + 0x110], ecx
lea eax, [ebx - 0x1b]
cmp eax, 0x17
jbe 0x421efb
lea edx, [eax - 0x18]
mov eax, 0xb21642c9
mul edx
shr edx, 4
inc edx
dec edx
lea eax, [ecx + 0x17]
mov dword [ecx], eax
mov ecx, eax
jne 0x421ef1
mov dword [ecx], 0
cmp dword [ebp + 8], 0
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x110]
mov dword [esi], ecx
mov eax, dword [edi + 0x10]
mov edx, dword [eax + 0x110]
mov ecx, dword [edx]
mov dword [eax + 0x110], ecx
je 0x421fba
cmp dword [esi], 0
jne 0x421f3a
push str.tocdecl_failed_
push edi
call fcn.0041d920
add esp, 8
mov eax, dword [esi]
mov byte [eax], 0xe8
movzx ecx, byte [eax]
cmp ecx, 0xe8
jl 0x421f76
cmp ecx, 0xe9
jle 0x421f69
cmp ecx, 0xeb
jne 0x421f76
mov edx, 0x421800
sub dl, al
sub dl, 2
mov byte [eax + 1], dl
jmp 0x421f76
mov ecx, 0x421800
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
mov dword [eax + 5], 0x4217e0
lea edx, [esi + 4]
mov dword [eax + 9], edx
mov byte [eax + 0xd], 0xbc
mov dword [eax + 0xe], 0
mov byte [eax + 0x12], 0xe9
mov dword [eax + 0x13], 0
push esi
mov ebx, edi
call fcn.00421820
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459753
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
jne 0x421fcd
push str.tostdcall_failed_
push edi
call fcn.0041d920
add esp, 8
mov eax, dword [esi]
mov ecx, dword [ebp - 0x7c]
mov byte [eax], 0x58
inc eax
cmp dword [ebp + 0xc], 0
je 0x421ff1
cmp ecx, 1
jle 0x421feb
mov word [eax], 0x5152
add eax, 2
jmp 0x421ff1
jne 0x421ff1
mov byte [eax], 0x51
inc eax
mov byte [eax], 0x68
lea edx, [esi + 4]
mov dword [eax + 1], edx
mov byte [eax + 5], 0x50
add eax, 6
mov byte [eax], 0xe9
cmp ecx, 0x14
ja case.default.0x42200d
jmp dword [ecx*4 + 0x42217c]
mov ecx, 0x421560
jmp 0x4220b1
mov ecx, 0x421580
jmp 0x4220b1
mov ecx, 0x4215a0
jmp 0x4220b1
mov ecx, 0x4215c0
jmp 0x4220b1
mov ecx, 0x4215e0
jmp 0x4220b1
mov ecx, 0x421600
jmp 0x4220b1
mov ecx, 0x421620
jmp 0x4220b1
mov ecx, 0x421640
jmp 0x4220b1
mov ecx, 0x421660
jmp 0x4220b1
mov ecx, 0x421680
jmp 0x4220b1
mov ecx, 0x4216a0
jmp 0x4220b1
mov ecx, 0x4216c0
jmp 0x4220b1
mov ecx, 0x4216e0
jmp 0x4220b1
mov ecx, 0x421700
jmp 0x4220b1
mov ecx, 0x421720
jmp 0x4220b1
mov ecx, 0x421740
jmp 0x4220b1
mov ecx, 0x421760
jmp 0x4220b1
mov ecx, 0x421780
jmp 0x4220b1
mov ecx, 0x4217a0
jmp 0x4220b1
mov ecx, 0x4217c0
jmp 0x4220b1
mov ecx, 0x421540
movzx edx, byte [eax]
cmp edx, 0xe8
jl 0x421f99
cmp edx, 0xe9
jle 0x4220e1
cmp edx, 0xeb
jne 0x421f99
sub cl, al
sub cl, 2
mov byte [eax + 1], cl
jmp 0x421f99
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
jmp 0x421f99
mov esi, dword [ebp - 0x68]
call fcn.00420390
push str.argument_list_too_long
push edi
call fcn.0041d920
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00459753
mov esp, ebp
pop ebp
ret