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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x314
mov eax, dword [0x45b0d0]
xor eax, esp
mov dword [esp + 0x310], eax
mov eax, dword [ebp + 8]
and dword [esp + 0x17c], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [esp + 0x2c], eax
mov ebx, ecx
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [esp + 0x28], eax
mov edi, 0x45b064
mov eax, dword [ebp + 0x20]
mov ecx, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], esi
call fcn.00457cbc
and dword [esp + 0x2b8], 0
mov ecx, edi
mov byte [esp + 0x2c4], 0
mov dword [esp + 0x2a4], 1
call fcn.00457cbc
mov edx, 0x406b68
test al, 0xe
je 0x427afb
xor ecx, ecx
lea eax, [esp + 0x188]
push ecx
push ecx
push ecx
push ecx
push edi
push edx
push ecx
push fcn.004565f0
push eax
push ecx
lea eax, [esp + 0x2c8]
push eax
call fcn.00429816
add esp, 0x2c
mov edx, 0x406b68
xor ecx, ecx
lea edi, [esp + 0x164]
xor eax, eax
mov byte [esp + 0x187], cl
stosd dword es:[edi], eax
mov dword [esp + 0x138], ecx
mov dword [esp + 0x13c], ecx
mov dword [esp + 0x140], ecx
stosd dword es:[edi], eax
mov dword [esp + 0x144], ecx
mov dword [esp + 0x148], ecx
mov dword [esp + 0x14c], ecx
stosd dword es:[edi], eax
mov dword [esp + 0x150], ecx
mov dword [esp + 0x154], ecx
mov dword [esp + 0x158], ecx
stosd dword es:[edi], eax
mov dword [esp + 0x15c], ecx
mov word [esp + 0x160], cx
mov dword [esp + 0x174], ecx
mov dword [esp + 0x178], ecx
mov dword [esp + 0x17c], ecx
mov dword [esp + 0x180], ecx
mov dword [esp + 0x10c], ecx
mov dword [esp + 0x110], ecx
mov dword [esp + 0x114], ecx
mov dword [esp + 0x118], ecx
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x128], ecx
mov byte [esp + 0x12c], cl
mov dword [esp + 0x130], ecx
mov dword [esp + 0x134], ecx
test esi, esi
je 0x427bdb
push 7
xor eax, eax
mov edi, esi
pop ecx
rep stosd dword es:[edi], eax
xor ecx, ecx
test ebx, 0xfffffec0
je 0x427c0e
mov dword [esp + 0x7c], 0x405528
lea ecx, [esp + 0x7c]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], 0x1135
mov dword [esp + 0x88], 0x40513c
jmp 0x427c7d
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x427c47
mov dword [esp + 0xdc], 0x405528
lea ecx, [esp + 0xdc]
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], 0x1137
mov dword [esp + 0xe8], 0x406b9c
jmp 0x427c7d
cmp dword [esp + 0x24], 0
jne 0x427c9b
mov dword [esp + 0xec], 0x405528
lea ecx, [esp + 0xec]
mov dword [esp + 0xf0], edx
mov dword [esp + 0xf4], 0x1138
mov dword [esp + 0xf8], 0x406bbc
mov eax, 0xc000000d
push eax
mov dword [esp + 0x18c], eax
call fcn.0045365a
mov esi, dword [esp + 0x188]
jmp 0x428519
mov eax, dword [edi]
mov dword [esp + 0x18c], ecx
mov esi, dword [eax + 4]
lea eax, [esp + 0x18c]
push eax
push 0x40772c
mov ecx, esi
call dword [0x45d240]
mov ecx, edi
call esi
mov esi, eax
test esi, esi
js 0x427e14
mov esi, dword [esp + 0x18c]
lea eax, [esp + 0x138]
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x140], eax
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x45d240]
mov ecx, esi
call edi
mov ecx, eax
call fcn.00439eb4
mov cl, al
mov al, bl
and al, 1
mov byte [esp + 0x15d], cl
mov byte [esp + 0x15e], al
lea eax, [esp + 0x10c]
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14c], eax
mov eax, ebx
shr eax, 8
test al, 1
je 0x427d60
mov word [esp + 0x15f], 0x101
mov byte [esp + 0x161], 1
xor edi, edi
test cl, cl
je 0x427def
push 0x2c
lea eax, [esp + 0x278]
push edi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [esp + 0x274]
push edi
push 0x2c
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x427dcb
mov dword [esp + 0xfc], 0x405528
lea ecx, [esp + 0xfc]
mov dword [esp + 0x100], 0x406b68
mov dword [esp + 0x104], 0x1153
mov dword [esp + 0x108], 0x406be8
jmp 0x428166
mov al, byte [esp + 0x29c]
mov byte [esp + 0x1f], 2
push 0xa
pop ecx
mov byte [esp + 0x1e], cl
cmp al, 2
jge 0x427de6
mov al, 2
jmp 0x427dea
cmp al, 0xa
jg 0x427dec
mov cl, al
movsx edi, cl
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov esi, dword [eax + 0x2c]
lea eax, [esp + 0x130]
push eax
mov ecx, esi
call dword [0x45d240]
mov ecx, dword [esp + 0x18]
call esi
mov esi, eax
test esi, esi
jns 0x427e20
mov dword [esp + 0x188], esi
jmp 0x42850d
cmp byte [esp + 0x15e], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x134], eax
je 0x427e6d
cmp byte [esp + 0x15d], 0
jne 0x427e6d
mov dword [esp + 0x3c], 0x405528
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], 0x406b68
mov eax, 0xc000000d
mov dword [esp + 0x44], 0x1161
mov dword [esp + 0x48], 0x406c58
jmp 0x428166
mov eax, ebx
and eax, 0x18
mov dword [esp + 0x2c], eax
setne al
dec al
and byte [esp + 0x12c], al
je 0x428061
cmp dword [esp + 0x10c], 0
je 0x427e9d
cmp dword [esp + 0x10c], 0xffffffff
je 0x427e9d
int3
push 0
push 0
mov esi, 0x1f0003
lea eax, [esp + 0x114]
push esi
push eax
call dword [sym.imp.ntdll.dll_NtCreateIoCompletion]
test eax, eax
jns 0x427ef1
mov dword [esp + 0xcc], 0x405528
lea ecx, [esp + 0xcc]
mov dword [esp + 0xd0], 0x406b68
mov dword [esp + 0xd4], 0x116b
mov dword [esp + 0xd8], 0x406ca8
jmp 0x428166
cmp dword [esp + 0x110], 0
je 0x427f06
cmp dword [esp + 0x110], 0xffffffff
je 0x427f06
int3
push 0
push 0
push esi
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.ntdll.dll_NtCreateIoCompletion]
test eax, eax
jns 0x427f46
mov dword [esp + 0x4c], 0x405528
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], 0x406b68
mov dword [esp + 0x54], 0x116c
mov dword [esp + 0x58], 0x406d28
jmp 0x428166
cmp dword [esp + 0x114], 0
je 0x427f51
int3
push 0
push 1
push 0
push esi
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
jns 0x427f93
mov dword [esp + 0x5c], 0x405528
lea ecx, [esp + 0x5c]
mov dword [esp + 0x60], 0x406b68
mov dword [esp + 0x64], 0x116e
mov dword [esp + 0x68], 0x406da0
jmp 0x428166
cmp dword [esp + 0x118], 0
je 0x427f9e
int3
push 0
push 1
push 0
push esi
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
jns 0x427fe0
mov dword [esp + 0x6c], 0x405528
lea ecx, [esp + 0x6c]
mov dword [esp + 0x70], 0x406b68
mov dword [esp + 0x74], 0x116f
mov dword [esp + 0x78], 0x406e30
jmp 0x428166
push 0
lea eax, [esp + 0x110]
push eax
push 0x429070
call dword [sym.imp.ntdll.dll_TpSimpleTryPost]
test eax, eax
jns 0x428031
mov dword [esp + 0x8c], 0x405528
lea ecx, [esp + 0x8c]
mov dword [esp + 0x90], 0x406b68
mov dword [esp + 0x94], 0x1171
mov dword [esp + 0x98], 0x406eb8
jmp 0x428166
xor esi, esi
test edi, edi
je 0x428061
push 0
lea eax, [esp + 0x110]
push eax
push 0x429170
call dword [sym.imp.ntdll.dll_TpSimpleTryPost]
test eax, eax
js 0x428133
lock inc dword [esp + 0x11c]
inc esi
cmp esi, edi
jb 0x428037
lea eax, [esp + 0x190]
push eax
lea eax, [esp + 0x1d4]
push eax
call dword [sym.imp.ntdll.dll_NtQueryPerformanceCounter]
mov edi, dword [ebp + 0x10]
mov eax, ebx
shr eax, 1
test al, 1
jne 0x42820d
xor edx, edx
shr ebx, 5
mov al, dl
mov dword [esp + 0x1a4], edx
and ebx, 1
mov dword [esp + 0x1a8], edx
mov dword [esp + 0x1ac], edx
mov dword [esp + 0x1b0], edx
mov dword [esp + 0x1b4], edx
mov dword [esp + 0x1b8], edx
mov dword [esp + 0x1bc], edx
mov dword [esp + 0x1c0], edx
mov dword [esp + 0x1c4], edx
mov byte [esp + 0x13], al
cmp dword [esp + 0x2c], edx
je 0x4280fb
lea eax, [esp + 0x13]
push eax
push ecx
lea ecx, [esp + 0x1ac]
call fcn.00422acb
mov esi, eax
test esi, esi
js 0x428456
mov al, byte [esp + 0x13]
xor edx, edx
mov ecx, dword [esp + 0x18]
test al, al
je 0x428112
mov eax, ecx
or ebx, 4
shr eax, 3
test al, 1
je 0x428112
or ebx, 2
cmp byte [esp + 0x187], 0
jne 0x428407
mov esi, dword [esp + 0x24]
shr ecx, 2
and cl, 1
mov dword [esp + 0x18], ecx
jmp 0x42828e
mov dword [esp + 0x9c], 0x405528
lea ecx, [esp + 0x9c]
mov dword [esp + 0xa0], 0x406b68
mov dword [esp + 0xa4], 0x1176
mov dword [esp + 0xa8], 0x406efc
push eax
mov dword [esp + 0x18c], eax
call fcn.0045365a
mov esi, dword [esp + 0x188]
jmp 0x42850d
push 0x38
xor esi, esi
lea eax, [esp + 0x22c]
push esi
push eax
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x193]
add esp, 0xc
mov dword [esp + 0x268], esi
mov dword [esp + 0x26c], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x260], edi
push ecx
lea ecx, [esp + 0x26c]
mov dword [esp + 0x268], eax
push ecx
lea ecx, [esp + 0x230]
push ecx
push eax
mov ecx, esi
call dword [0x45d240]
call esi
cmp byte [esp + 0x187], 0
jne 0x428232
push dword [esp + 0x28]
mov esi, dword [esp + 0x26c]
lea edx, [esp + 0x22c]
call fcn.004279ff
lea ecx, [esp + 0x228]
cmp esi, 0x10
je 0x428220
call fcn.00423756
cmp byte [esp + 0x187], 0
je 0x42817f
jmp 0x428086
mov byte [esp + 0x15c], 1
call fcn.00423756
jmp 0x428086
and dword [esp + 0xb8], 0
lea ecx, [esp + 0xac]
mov eax, 0xc000000d
mov dword [esp + 0xac], 0x405528
push eax
mov dword [esp + 0xb4], 0x406b68
mov dword [esp + 0xb8], 0x119b
mov dword [esp + 0x18c], eax
call fcn.0045365a
mov esi, dword [esp + 0x188]
lea ecx, [esp + 0x228]
call fcn.00423756
jmp 0x42850d
xor edx, edx
test cl, cl
je 0x4282a0
cmp byte [esp + 0x15c], 0
jne 0x428407
push 0x38
push edx
lea eax, [esp + 0x1e8]
push eax
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x193]
and dword [esp + 0x22c], 0
add esp, 0xc
and dword [esp + 0x224], 0
mov dword [esp + 0x218], edi
mov dword [esp + 0x21c], eax
push ecx
lea ecx, [esp + 0x224]
push ecx
lea ecx, [esp + 0x1e8]
push ecx
push eax
mov ecx, esi
call dword [0x45d240]
call esi
cmp byte [esp + 0x187], 0
jne 0x4283fb
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1a4]
push eax
lea eax, [esp + 0x168]
mov ecx, ebx
push eax
lea eax, [esp + 0x1e8]
push eax
call fcn.004277e7
mov edi, eax
mov al, byte [esp + 0x12c]
test al, al
jne 0x42834d
push dword [esp + 0x28]
lea edx, [esp + 0x1e4]
call fcn.004279ff
mov al, byte [esp + 0x12c]
test edi, edi
js 0x428386
mov edi, dword [esp + 0x180]
test edi, edi
js 0x428386
inc dword [esp + 0x20]
lea ecx, [esp + 0x1e0]
call fcn.00423756
cmp byte [esp + 0x187], 0
mov ecx, dword [esp + 0x18]
mov edi, dword [ebp + 0x10]
je 0x42828c
jmp 0x428407
test al, al
je 0x4283a3
lea ecx, [esp + 0x10c]
mov dword [esp + 0x128], edi
call fcn.00423779
mov esi, eax
test esi, esi
js 0x4283d3
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4283dc
mov eax, dword [esp + 0x220]
lea edx, [ecx + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x20]
mov dword [ecx], edi
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x220]
call fcn.0041faa9
mov esi, eax
test esi, esi
jns 0x4283fb
mov dword [esp + 0x188], esi
jmp 0x4283ea
test edi, edi
js 0x4283e1
int3
mov dword [esp + 0x188], edi
mov esi, edi
lea ecx, [esp + 0x1e0]
call fcn.00423756
jmp 0x4284f5
lea ecx, [esp + 0x1e0]
call fcn.00423756
cmp byte [esp + 0x12c], 0
je 0x42858d
lea ecx, [esp + 0x10c]
call fcn.00423779
mov esi, eax
test esi, esi
js 0x428456
cmp byte [esp + 0x12c], 0
je 0x42858d
cmp dword [esp + 0x128], 0
jge 0x428462
cmp dword [esp + 0x30], 0
jne 0x42858d
mov esi, dword [esp + 0x128]
test esi, esi
js 0x428456
int3
mov dword [esp + 0x188], esi
jmp 0x4284f5
mov eax, dword [esp + 0x124]
cmp dword [esp + 0x120], eax
je 0x42858d
mov eax, dword [esp + 0x120]
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x19c], eax
lea eax, [esp + 0x19c]
push eax
lea eax, [esp + 0x1a4]
push eax
push 0x406f40
call fcn.00429d65
and dword [esp + 0xc8], 0
lea ecx, [esp + 0xbc]
mov eax, 0xc00000e5
mov dword [esp + 0xbc], 0x405528
push eax
mov dword [esp + 0xc4], 0x406b68
mov dword [esp + 0xc8], 0x1207
mov dword [esp + 0x18c], eax
call fcn.0045365a
mov esi, dword [esp + 0x188]
lea ecx, [esp + 0x1a4]
call fcn.00422a54
lea ecx, [esp + 0x1a4]
call fcn.004296ae
lea ecx, [esp + 0x18c]
call fcn.0041c709
lea ecx, [esp + 0x10c]
call fcn.00423779
lea ecx, [esp + 0x118]
call fcn.00429563
lea ecx, [esp + 0x114]
call fcn.00429563
lea ecx, [esp + 0x110]
call fcn.00429689
lea ecx, [esp + 0x10c]
call fcn.00429689
lea ecx, [esp + 0x164]
call fcn.00428715
mov ecx, dword [esp + 0x138]
test ecx, ecx
je 0x428572
push ecx
call fcn.0042984b
and dword [esp + 0x138], 0
lea ecx, [esp + 0x2a0]
call fcn.00429583
mov eax, esi
jmp 0x4286fe
lea ecx, [esp + 0x1a4]
call fcn.00422a54
lea eax, [esp + 0x190]
push eax
lea eax, [esp + 0x1cc]
push eax
call dword [sym.imp.ntdll.dll_NtQueryPerformanceCounter]
mov esi, dword [esp + 0x1c8]
sub esi, dword [esp + 0x1d0]
mov edi, dword [esp + 0x1cc]
sbb edi, dword [esp + 0x1d4]
push 0
push 0xf4240
push dword [esp + 0x19c]
push dword [esp + 0x19c]
call sub.ntdll.dll__alldiv
mov ecx, eax
mov dword [esp + 0x194], edx
or eax, edx
mov dword [esp + 0x190], ecx
jne 0x428610
and dword [esp + 0x194], eax
xor ebx, ebx
inc ebx
xor edx, edx
mov dword [esp + 0x190], ebx
mov ecx, ebx
jmp 0x428613
xor ebx, ebx
inc ebx
push edx
push ecx
push edi
push esi
call sub.ntdll.dll__aulldiv
mov esi, 0x45b064
mov dword [esp + 0x1d8], eax
mov ecx, esi
mov dword [esp + 0x1dc], edx
call fcn.00457cbc
shr eax, 0x11
test bl, al
je 0x42865f
lea eax, [esp + 0x1d8]
push eax
push 0x4561f0
push 0x406f98
push ebx
push 0x406f9c
push esi
push ebx
call fcn.00422a2c
add esp, 0x1c
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x2c4], bl
call fcn.00422a54
lea ecx, [esp + 0x1a4]
call fcn.004296ae
lea ecx, [esp + 0x18c]
call fcn.0041c709
lea ecx, [esp + 0x10c]
call fcn.00423779
lea ecx, [esp + 0x118]
call fcn.00429563
lea ecx, [esp + 0x114]
call fcn.00429563
lea ecx, [esp + 0x110]
call fcn.00429689
lea ecx, [esp + 0x10c]
call fcn.00429689
lea ecx, [esp + 0x164]
call fcn.00428715
mov ecx, dword [esp + 0x138]
test ecx, ecx
je 0x4286e3
push ecx
call fcn.0042984b
and dword [esp + 0x138], 0
lea ecx, [esp + 0x2a0]
call fcn.00429583
mov eax, dword [esp + 0x188]
mov ecx, dword [esp + 0x31c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045a80a
mov esp, ebp
pop ebp
ret 0x20