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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4959d4]
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 - 0x78], eax
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 0xc]
add eax, 0x10
mov dword [ebp - 0x68], 3
cmp eax, ecx
jae 0x4212b5
cmp eax, 0x47f988
je 0x4212b1
cmp dword [eax + 8], 6
je 0x421307
cmp eax, ecx
jb 0x4212ba
mov eax, 0x47f988
mov ecx, dword [eax + 8]
cmp ecx, 6
jne 0x4212d1
mov edx, dword [eax]
cmp byte [edx + 7], 0
je 0x4212d1
mov eax, 0x481794
jmp 0x4212e4
cmp eax, 0x47f988
mov eax, str.no_value
je 0x4212e4
mov eax, dword [ecx*4 + 0x47f7d4]
push eax
mov eax, dword [0x47f7ec]
push eax
push str._nexpected:_s_ngot:_s
push edi
call fcn.0041af60
add esp, 0x10
mov ebx, eax
mov ecx, 2
mov edx, edi
call fcn.0041cfd0
mov eax, dword [edi + 0xc]
add eax, 0x20
cmp eax, dword [edi + 8]
jae 0x421381
cmp eax, 0x47f988
je 0x421381
cmp dword [eax + 8], 0
jle 0x421381
push 0
push 3
mov eax, edi
call fcn.0041db70
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 0xc]
add eax, 0x20
add esp, 8
mov esi, 0x47f988
cmp eax, dword [edi + 8]
jae 0x421342
mov esi, eax
mov eax, dword [esi + 8]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x42134d.6
jmp dword [eax*4 + 0x421aa4]
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
jmp 0x42137d
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
jmp 0x42137d
mov eax, dword [esi]
call fcn.004288b0
jmp 0x42137d
call fcn.0042a6c0
test eax, eax
je case.0x42134d.6
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
jmp 0x42137d
xor eax, eax
inc eax
mov dword [ebp - 0x68], eax
push 0x30
call fcn.00459af1
push 0x30
mov esi, eax
push 0
push esi
mov dword [ebp - 0x70], esi
call fcn.00462dc0
mov ebx, dword [ebp - 0x68]
push ebx
call fcn.00459af1
push ebx
mov dword [esi + 0x18], eax
call fcn.00459af1
add esp, 0x18
cmp dword [ebp + 0xc], 0
mov dword [esi + 0x14], eax
jne 0x4213bd
mov dword [esi + 4], edi
jmp 0x421480
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
add ecx, 0x10
mov dword [ebp - 0x68], 0
cmp ecx, eax
jb 0x4213d6
mov ecx, 0x47f988
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.0043a5f0
lea edx, [ebp - 0x68]
push edx
or ebx, 0xffffffff
mov eax, edi
call fcn.0041ad90
mov ebx, dword [ebp - 0x68]
push ebx
mov dword [ebp - 0x6c], eax
call fcn.00459af1
mov ecx, dword [ebp - 0x6c]
push ebx
push ecx
push eax
mov dword [esi + 0x20], eax
call fcn.00462f30
mov dword [esi + 0x24], ebx
add dword [edi + 8], 0xffffffe0
mov ecx, dword [edi + 0x38]
mov ebx, dword [edi + 8]
add esp, 0x14
test ecx, ecx
je 0x421480
mov eax, dword [edi + 0x10]
mov esi, dword [eax + 0x60]
push ecx
call fcn.00428530
mov edx, dword [eax]
mov dword [ebx], edx
mov ecx, dword [eax + 4]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 8]
lea eax, [ebp - 0x6c]
mov dword [ebx + 8], edx
add dword [edi + 8], 0x10
push eax
or ebx, 0xffffffff
mov eax, edi
call fcn.0041ad90
mov ebx, dword [ebp - 0x6c]
push ebx
mov esi, eax
call fcn.00459af1
mov ecx, dword [ebp - 0x70]
push ebx
push esi
push eax
mov dword [ecx + 0x28], eax
call fcn.00462f30
mov esi, dword [ebp - 0x70]
add esp, 0x18
add dword [edi + 8], 0xfffffff0
mov eax, dword [esi + 0x18]
mov ebx, dword [ebp - 0x64]
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x68], eax
mov al, byte [ebx]
mov dword [ebp - 0x74], edx
cmp al, 0x66
je 0x421499
cmp al, 0x64
jne 0x4214a7
push str.Callback_must_return_an_integer_or_pointer_
push edi
call fcn.0041d210
add esp, 8
mov al, byte [ebx]
test al, al
je 0x4214c3
lea ecx, [ecx]
cmp al, 0x28
je 0x421564
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x4214b0
mov dword [ebp - 0x64], ebx
cmp byte [ebx], 0x28
je 0x421567
mov esi, dword [ebp - 0x70]
call fcn.0041fca0
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x28]
cmp eax, ecx
jbe 0x42153d
sub eax, ecx
mov ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push 0x480c7c
lea eax, [ebp - 0x60]
mov dword [ebp - 8], ecx
call fcn.0042ef10
mov eax, dword [ebp - 0x5c]
add esp, 4
test eax, eax
jne 0x421515
mov eax, 0x480ac4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x64]
push ecx
push 2
push eax
push str._ncalling:_s_nbad_argument:__d_n_s
push edi
call fcn.0041d210
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457a03
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x64]
push edx
push 2
push str._nbad_argument:__d__s
push edi
call fcn.0041d210
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457a03
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x64], ebx
mov edx, dword [ebp - 0x64]
mov bl, byte [edx]
test bl, bl
je 0x42165f
cmp bl, 0x29
je 0x42165f
movzx eax, bl
sub eax, 0x26
je 0x421642
sub eax, 2
je 0x421597
sub eax, 4
jne 0x421649
inc dword [ebp - 0x64]
lea eax, [ebp - 0x79]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.0041faf0
mov bl, al
add esp, 8
test bl, bl
je 0x42165f
cmp bl, 0x29
je 0x42164d
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x68]
mov byte [edx], bl
mov byte [eax], bl
movsx eax, bl
add eax, 0xffffffbe
cmp eax, 0x37
ja case.0x4215d9.67
movzx ecx, byte [eax + 0x421ad0]
jmp dword [ecx*4 + 0x421ab8]
mov eax, 1
jmp 0x421629
mov eax, 2
jmp 0x421629
mov eax, 4
jmp 0x421629
mov eax, 8
jmp 0x421629
mov dword [ebp - 0x6c], 0
jmp 0x42160c
mov dword [ebp - 0x6c], 0xffffffff
mov esi, dword [ebp - 0x70]
call fcn.0041fca0
mov edx, dword [ebp - 0x64]
push edx
push str.callback_:__struct_error_..._s
push edi
call fcn.0041d210
mov eax, dword [ebp - 0x6c]
add esp, 0xc
add eax, 3
shr eax, 2
add dword [ebp - 0x78], eax
mov eax, 1
add dword [ebp - 0x68], eax
add dword [ebp - 0x74], eax
sub dword [ebp - 0x64], eax
jmp 0x421649
mov eax, dword [ebp - 0x74]
mov byte [eax - 1], 0x26
test bl, bl
je 0x42165f
mov eax, dword [ebp - 0x64]
mov bl, byte [eax + 1]
inc eax
mov dword [ebp - 0x64], eax
test bl, bl
jne 0x421574
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x68]
mov byte [eax], 0
mov byte [ecx], 0
mov ecx, dword [esi + 0x14]
sub eax, ecx
lea ebx, [eax + 1]
push ebx
push ecx
call fcn.0045ab4d
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 0x421695
mov eax, 0x47f988
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.0041eb60
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x10]
add esp, 4
cmp dword [ecx + 0x110], 0
jne 0x421751
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 0x421707
mov dword [edx + 0x10c], ecx
jmp 0x421719
cmp dword [eax], 0
je 0x421717
lea esp, [esp]
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x421710
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 0x42174b
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 0x421741
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 0x42180a
cmp dword [esi], 0
jne 0x42178a
push str.tocdecl_failed_
push edi
call fcn.0041d210
add esp, 8
mov eax, dword [esi]
mov byte [eax], 0xe8
movzx ecx, byte [eax]
cmp ecx, 0xe8
jl 0x4217c6
cmp ecx, 0xe9
jle 0x4217b9
cmp ecx, 0xeb
jne 0x4217c6
mov edx, 0x421060
sub dl, al
sub dl, 2
mov byte [eax + 1], dl
jmp 0x4217c6
mov ecx, 0x421060
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
mov dword [eax + 5], 0x421040
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.00421080
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457a03
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
jne 0x42181d
push str.tostdcall_failed_
push edi
call fcn.0041d210
add esp, 8
mov eax, dword [esi]
mov word [eax], 0x6858
lea ecx, [esi + 4]
mov dword [eax + 2], ecx
mov ecx, dword [ebp - 0x78]
mov byte [eax + 6], 0x50
add eax, 7
mov byte [eax], 0xe9
cmp ecx, 0x14
ja case.default.0x421840
jmp dword [ecx*4 + 0x421b08]
mov ecx, 0x420dc0
jmp 0x4218de
mov ecx, 0x420de0
jmp 0x4218de
mov ecx, 0x420e00
jmp 0x4218de
mov ecx, 0x420e20
jmp 0x4218de
mov ecx, 0x420e40
jmp 0x4218de
mov ecx, 0x420e60
jmp 0x4218de
mov ecx, 0x420e80
jmp 0x4218de
mov ecx, 0x420ea0
jmp 0x4218de
mov ecx, 0x420ec0
jmp 0x4218de
mov ecx, 0x420ee0
jmp 0x4218de
mov ecx, 0x420f00
jmp 0x4218de
mov ecx, 0x420f20
jmp 0x4218de
mov ecx, 0x420f40
jmp 0x4218de
mov ecx, 0x420f60
jmp 0x4218de
mov ecx, 0x420f80
jmp 0x4218de
mov ecx, 0x420fa0
jmp 0x4218de
mov ecx, 0x420fc0
jmp 0x4218de
mov ecx, 0x420fe0
jmp 0x4218de
mov ecx, 0x421000
jmp 0x4218de
mov ecx, 0x421020
jmp 0x4218de
mov ecx, 0x420da0
movzx edx, byte [eax]
cmp edx, 0xe8
jl 0x4217e9
cmp edx, 0xe9
jle 0x42190e
cmp edx, 0xeb
jne 0x4217e9
sub cl, al
sub cl, 2
mov byte [eax + 1], cl
jmp 0x4217e9
sub ecx, eax
sub ecx, 5
mov dword [eax + 1], ecx
jmp 0x4217e9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42192b
push eax
call fcn.00459ab7
add esp, 4
mov eax, dword [esi + 0x18]
test eax, eax
je 0x42193b
push eax
call fcn.00459ab7
add esp, 4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x42196b
push eax
call fcn.00459ab7
mov eax, dword [esi + 0x28]
add esp, 4
test eax, eax
je 0x42195b
push eax
call fcn.00459ab7
add esp, 4
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x42196b
push eax
call fcn.00459ab7
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x421a63
mov dword [ebp - 0x6c], eax
js 0x421a63
mov eax, dword [edi + 0x10]
mov esi, dword [eax + 0x60]
push 0
call fcn.00428530
mov edx, dword [eax]
mov ecx, dword [edi + 8]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x6c]
add dword [edi + 8], 0x10
mov esi, dword [edi + 0x10]
mov eax, dword [esi + 0x60]
mov ebx, dword [edi + 8]
push ecx
push edi
call fcn.00428730
mov edx, dword [ebx - 0x10]
mov dword [eax], edx
mov ecx, dword [ebx - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebx - 8]
mov dword [eax + 8], edx
mov eax, dword [edi + 8]
add esp, 0xc
cmp dword [eax - 8], 4
jl 0x4219f5
mov eax, dword [eax - 0x10]
test byte [eax + 5], 3
je 0x4219f5
mov esi, dword [esi + 0x60]
test byte [esi + 5], 4
je 0x4219f5
mov eax, dword [edi + 0x10]
and byte [esi + 5], 0xfb
mov ecx, dword [eax + 0x28]
mov dword [esi + 0x18], ecx
mov dword [eax + 0x28], esi
add dword [edi + 8], 0xfffffff0
fild dword [ebp - 0x6c]
mov eax, dword [edi + 8]
mov dword [eax + 8], 3
fstp qword [eax]
add dword [edi + 8], 0x10
mov esi, dword [edi + 0x10]
mov eax, dword [esi + 0x60]
mov ebx, dword [edi + 8]
push 0
push edi
call fcn.00428730
mov edx, dword [ebx - 0x10]
mov dword [eax], edx
mov ecx, dword [ebx - 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebx - 8]
mov dword [eax + 8], edx
mov eax, dword [edi + 8]
add esp, 8
cmp dword [eax - 8], 4
jl 0x421a5c
mov eax, dword [eax - 0x10]
test byte [eax + 5], 3
je 0x421a5c
mov esi, dword [esi + 0x60]
test byte [esi + 5], 4
je 0x421a5c
mov eax, dword [edi + 0x10]
and byte [esi + 5], 0xfb
mov ecx, dword [eax + 0x28]
mov dword [esi + 0x18], ecx
mov dword [eax + 0x28], esi
add dword [edi + 8], 0xfffffff0
mov esi, dword [ebp - 0x70]
mov edx, dword [edi + 0x10]
mov eax, dword [esi]
mov ecx, dword [edx + 0x110]
mov dword [eax], ecx
mov edx, dword [edi + 0x10]
mov eax, dword [esi]
push esi
mov dword [edx + 0x110], eax
call fcn.00459ab7
push str.argument_list_too_long
push edi
call fcn.0041d210
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00457a03
mov esp, ebp
pop ebp
ret