Function at 0x428547
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, 0x25c
mov eax, dword [0x45e040]
xor eax, esp
mov dword [esp + 0x258], eax
mov eax, dword [ebp + 8]
and dword [esp + 0xc4], 0
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [esp + 0xd0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x28]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [esp + 0x34], eax
mov edi, 0x45e4c8
mov eax, dword [ebp + 0x20]
mov ecx, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0xdc], eax
mov dword [esp + 0x3c], esi
call fcn.0045a53e
and dword [esp + 0x200], 0
mov ecx, edi
mov byte [esp + 0x20c], 0
mov dword [esp + 0x1ec], 1
call fcn.0045a53e
mov edx, 0x406bf8
test al, 0xe
je 0x42860e
xor ecx, ecx
lea eax, [esp + 0xd0]
push ecx
push ecx
push ecx
push ecx
push edi
push edx
push ecx
push fcn.00458d90
push eax
push ecx
lea eax, [esp + 0x210]
push eax
call fcn.0042a1e0
add esp, 0x2c
mov edx, 0x406bf8
xor ecx, ecx
lea edi, [esp + 0xac]
xor eax, eax
mov byte [esp + 0xcf], cl
stosd dword es:[edi], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ecx
stosd dword es:[edi], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ecx
stosd dword es:[edi], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ecx
stosd dword es:[edi], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x70], ecx
mov byte [esp + 0x74], cl
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
test esi, esi
je 0x4286cc
push 7
xor eax, eax
mov edi, esi
pop ecx
rep stosd dword es:[edi], eax
xor ecx, ecx
test ebx, 0xfffff8c0
je 0x4286e6
mov dword [esp + 0x18], 0x11a6
mov dword [esp + 0x1c], 0x40512c
jmp 0x428717
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x428700
mov dword [esp + 0x18], 0x11a8
mov dword [esp + 0x1c], 0x406c2c
jmp 0x428717
cmp dword [esp + 0x30], 0
jne 0x428745
mov dword [esp + 0x18], 0x11a9
mov dword [esp + 0x1c], 0x406c4c
mov eax, 0xc000000d
mov dword [esp + 0x10], 0x405530
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edx
mov dword [esp + 0xd4], eax
call fcn.00455c22
mov esi, dword [esp + 0xd0]
jmp 0x428eae
mov eax, dword [edi]
mov dword [esp + 0xd4], ecx
mov esi, dword [eax + 4]
lea eax, [esp + 0xd4]
push eax
push 0x4077bc
mov ecx, esi
call dword [0x46023c]
mov ecx, edi
call esi
mov esi, eax
test esi, esi
js 0x4288bf
mov esi, dword [esp + 0xd4]
lea eax, [esp + 0x80]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x88], eax
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x46023c]
mov ecx, esi
call edi
mov ecx, eax
call fcn.0043b6ea
mov cl, al
xor edx, edx
inc edx
mov byte [esp + 0xa5], cl
mov al, bl
and al, dl
mov byte [esp + 0xa6], al
mov eax, ebx
shr eax, 0xa
and al, dl
mov byte [esp + 0xa7], al
lea eax, [esp + 0x54]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x94], eax
mov eax, ebx
shr eax, 8
test dl, al
je 0x428825
mov byte [esp + 0xa8], dl
mov byte [esp + 0xa9], dl
mov byte [esp + 0xaa], dl
mov byte [esp + 0xab], dl
mov eax, ebx
shr eax, 9
test dl, al
je 0x428835
mov byte [esp + 0xa8], dl
xor edi, edi
test cl, cl
je 0x42889d
push 0x2c
lea eax, [esp + 0x1c0]
push edi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [esp + 0x1bc]
push edi
push 0x2c
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x428879
mov dword [esp + 0x18], 0x11cb
mov dword [esp + 0x1c], 0x406c78
jmp 0x428b2b
mov al, byte [esp + 0x1e4]
mov byte [esp + 0x2f], 2
push 0xa
pop ecx
mov byte [esp + 0x2e], cl
cmp al, 2
jge 0x428894
mov al, 2
jmp 0x428898
cmp al, 0xa
jg 0x42889a
mov cl, al
movsx edi, cl
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov esi, dword [eax + 0x2c]
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call dword [0x46023c]
mov ecx, dword [esp + 0x28]
call esi
mov esi, eax
test esi, esi
jns 0x4288cb
mov dword [esp + 0xd0], esi
jmp 0x428ea2
cmp byte [esp + 0xa6], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x7c], eax
je 0x428901
cmp byte [esp + 0xa5], 0
jne 0x428901
mov dword [esp + 0x18], 0x11d9
mov eax, 0xc000000d
mov dword [esp + 0x1c], 0x406ce8
jmp 0x428b2b
mov eax, ebx
and eax, 0x18
mov dword [esp + 0x40], eax
setne al
dec al
and byte [esp + 0x74], al
je 0x428a49
cmp dword [esp + 0x54], 0
je 0x428928
cmp dword [esp + 0x54], 0xffffffff
je 0x428928
int3
push 0
push 0
mov esi, 0x1f0003
lea eax, [esp + 0x5c]
push esi
push eax
call dword [sym.imp.ntdll.dll_NtCreateIoCompletion]
test eax, eax
jns 0x428956
mov dword [esp + 0x18], 0x11e3
mov dword [esp + 0x1c], 0x406d38
jmp 0x428b2b
cmp dword [esp + 0x58], 0
je 0x428965
cmp dword [esp + 0x58], 0xffffffff
je 0x428965
int3
push 0
push 0
push esi
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.ntdll.dll_NtCreateIoCompletion]
test eax, eax
jns 0x42898e
mov dword [esp + 0x18], 0x11e4
mov dword [esp + 0x1c], 0x406db8
jmp 0x428b2b
cmp dword [esp + 0x5c], 0
je 0x428996
int3
push 0
push 1
push 0
push esi
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
jns 0x4289c1
mov dword [esp + 0x18], 0x11e6
mov dword [esp + 0x1c], 0x406e30
jmp 0x428b2b
cmp dword [esp + 0x60], 0
je 0x4289c9
int3
push 0
push 1
push 0
push esi
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.ntdll.dll_NtCreateEvent]
test eax, eax
jns 0x4289f4
mov dword [esp + 0x18], 0x11e7
mov dword [esp + 0x1c], 0x406ec0
jmp 0x428b2b
push 0
lea eax, [esp + 0x58]
push eax
push 0x429990
call dword [sym.imp.ntdll.dll_TpSimpleTryPost]
test eax, eax
jns 0x428a1f
mov dword [esp + 0x18], 0x11e9
mov dword [esp + 0x1c], 0x406f48
jmp 0x428b2b
xor esi, esi
test edi, edi
je 0x428a49
push 0
lea eax, [esp + 0x58]
push eax
push 0x429a80
call dword [sym.imp.ntdll.dll_TpSimpleTryPost]
test eax, eax
js 0x428b1b
lock inc dword [esp + 0x64]
inc esi
cmp esi, edi
jb 0x428a25
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.ntdll.dll_NtQueryPerformanceCounter]
mov edi, dword [ebp + 0x10]
mov eax, ebx
shr eax, 1
test al, 1
jne 0x428be9
xor edx, edx
shr ebx, 5
mov al, dl
mov dword [esp + 0xec], edx
and ebx, 1
mov dword [esp + 0xf0], edx
mov dword [esp + 0xf4], edx
mov dword [esp + 0xf8], edx
mov dword [esp + 0xfc], edx
mov dword [esp + 0x100], edx
mov dword [esp + 0x104], edx
mov dword [esp + 0x108], edx
mov dword [esp + 0x10c], edx
mov byte [esp + 0x23], al
cmp dword [esp + 0x40], edx
je 0x428ae3
lea eax, [esp + 0x23]
push eax
push ecx
lea ecx, [esp + 0xf4]
call fcn.00423237
mov esi, eax
test esi, esi
js 0x428e09
mov al, byte [esp + 0x23]
xor edx, edx
mov ecx, dword [esp + 0x28]
test al, al
je 0x428afa
mov eax, ecx
or ebx, 4
shr eax, 3
test al, 1
je 0x428afa
or ebx, 2
cmp byte [esp + 0xcf], 0
jne 0x428dc9
mov esi, dword [esp + 0x30]
shr ecx, 2
and cl, 1
mov dword [esp + 0x28], ecx
jmp 0x428c5b
mov dword [esp + 0x18], 0x11ee
mov dword [esp + 0x1c], 0x406f8c
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0x406bf8
mov dword [esp + 0x14], 0x405530
mov dword [esp + 0xd4], eax
call fcn.00455c22
mov esi, dword [esp + 0xd0]
jmp 0x428ea2
push 0x38
xor esi, esi
lea eax, [esp + 0x174]
push esi
push eax
call sub.ntdll.dll_memset
mov eax, dword [esp + 0xe4]
lea ecx, [esp + 0xdb]
add esp, 0xc
mov dword [esp + 0x1b0], esi
mov dword [esp + 0x1b4], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x1a8], edi
push ecx
lea ecx, [esp + 0x1b4]
mov dword [esp + 0x1b0], eax
push ecx
lea ecx, [esp + 0x178]
push ecx
push eax
mov ecx, esi
call dword [0x46023c]
call esi
cmp byte [esp + 0xcf], 0
jne 0x428c0e
push dword [esp + 0x34]
mov esi, dword [esp + 0x1b4]
lea edx, [esp + 0x174]
call fcn.00428507
lea ecx, [esp + 0x170]
cmp esi, 0x10
je 0x428bfc
call fcn.00423f6e
cmp byte [esp + 0xcf], 0
je 0x428b58
jmp 0x428a6e
mov byte [esp + 0xa4], 1
call fcn.00423f6e
jmp 0x428a6e
and dword [esp + 0x1c], 0
lea ecx, [esp + 0x10]
mov eax, 0xc000000d
mov dword [esp + 0x10], 0x405530
push eax
mov dword [esp + 0x18], 0x406bf8
mov dword [esp + 0x1c], 0x1213
mov dword [esp + 0xd4], eax
call fcn.00455c22
mov esi, dword [esp + 0xd0]
lea ecx, [esp + 0x170]
call fcn.00423f6e
jmp 0x428ea2
xor edx, edx
test cl, cl
je 0x428c6d
cmp byte [esp + 0xa4], 0
jne 0x428dc9
push 0x38
push edx
lea eax, [esp + 0x130]
push eax
call sub.ntdll.dll_memset
mov eax, dword [esp + 0xe4]
lea ecx, [esp + 0xdb]
and dword [esp + 0x174], 0
add esp, 0xc
and dword [esp + 0x16c], 0
mov dword [esp + 0x160], edi
mov dword [esp + 0x164], eax
push ecx
lea ecx, [esp + 0x16c]
push ecx
lea ecx, [esp + 0x130]
push ecx
push eax
mov ecx, esi
call dword [0x46023c]
call esi
cmp byte [esp + 0xcf], 0
jne 0x428dbd
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xec]
push ecx
push eax
lea eax, [esp + 0xb4]
mov ecx, ebx
push eax
lea eax, [esp + 0x134]
push eax
call fcn.004282e7
mov edi, eax
mov al, byte [esp + 0x74]
test al, al
jne 0x428d18
push dword [esp + 0x34]
lea edx, [esp + 0x12c]
call fcn.00428507
mov al, byte [esp + 0x74]
test edi, edi
js 0x428d4e
mov edi, dword [esp + 0xc8]
test edi, edi
js 0x428d4e
inc dword [esp + 0x38]
lea ecx, [esp + 0x128]
call fcn.00423f6e
cmp byte [esp + 0xcf], 0
mov ecx, dword [esp + 0x28]
mov edi, dword [ebp + 0x10]
je 0x428c59
jmp 0x428dc9
test al, al
je 0x428d65
lea ecx, [esp + 0x54]
mov dword [esp + 0x70], edi
call fcn.00423f97
mov esi, eax
test esi, esi
js 0x428d95
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x428d9e
mov eax, dword [esp + 0x168]
lea edx, [ecx + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx], edi
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x168]
call fcn.0041ff68
mov esi, eax
test esi, esi
jns 0x428dbd
mov dword [esp + 0xd0], esi
jmp 0x428dac
test edi, edi
js 0x428da3
int3
mov dword [esp + 0xd0], edi
mov esi, edi
lea ecx, [esp + 0x128]
call fcn.00423f6e
jmp 0x428e8a
lea ecx, [esp + 0x128]
call fcn.00423f6e
cmp byte [esp + 0x74], 0
je 0x428ee2
lea ecx, [esp + 0x54]
call fcn.00423f97
mov esi, eax
test esi, esi
js 0x428e09
cmp byte [esp + 0x74], 0
je 0x428ee2
cmp dword [esp + 0x70], 0
jge 0x428e12
cmp dword [esp + 0x3c], 0
jne 0x428ee2
mov esi, dword [esp + 0x70]
test esi, esi
js 0x428e09
int3
mov dword [esp + 0xd0], esi
jmp 0x428e8a
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x68], eax
je 0x428ee2
mov eax, dword [esp + 0x68]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xdc], eax
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0xdc]
push eax
push 0x406fd0
call fcn.0042a777
and dword [esp + 0x50], 0
lea ecx, [esp + 0x44]
mov eax, 0xc00000e5
mov dword [esp + 0x44], 0x405530
push eax
mov dword [esp + 0x4c], 0x406bf8
mov dword [esp + 0x50], 0x127f
mov dword [esp + 0xd4], eax
call fcn.00455c22
mov esi, dword [esp + 0xd0]
lea ecx, [esp + 0xec]
call fcn.004231ba
lea ecx, [esp + 0xec]
call fcn.00429fca
lea ecx, [esp + 0xd4]
call fcn.0041ca36
lea ecx, [esp + 0x54]
call fcn.00424075
lea ecx, [esp + 0xac]
call fcn.00429030
lea ecx, [esp + 0x80]
call fcn.00429e47
lea ecx, [esp + 0x1e8]
call fcn.00429e93
mov eax, esi
jmp 0x429013
lea ecx, [esp + 0xec]
call fcn.004231ba
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.ntdll.dll_NtQueryPerformanceCounter]
mov esi, dword [esp + 0x110]
sub esi, dword [esp + 0x118]
mov edi, dword [esp + 0x114]
sbb edi, dword [esp + 0x11c]
push 0
push 0xf4240
push dword [esp + 0xec]
push dword [esp + 0xec]
call sub.ntdll.dll__alldiv
mov ecx, eax
mov dword [esp + 0xe4], edx
or eax, edx
mov dword [esp + 0xe0], ecx
jne 0x428f65
and dword [esp + 0xe4], eax
xor ebx, ebx
inc ebx
xor edx, edx
mov dword [esp + 0xe0], ebx
mov ecx, ebx
jmp 0x428f68
xor ebx, ebx
inc ebx
push edx
push ecx
push edi
push esi
call sub.ntdll.dll__aulldiv
mov esi, 0x45e4c8
mov dword [esp + 0x120], eax
mov ecx, esi
mov dword [esp + 0x124], edx
call fcn.0045a53e
shr eax, 0x11
test bl, al
je 0x428fb4
lea eax, [esp + 0x120]
push eax
push 0x458940
push 0x407028
push ebx
push 0x40702c
push esi
push ebx
call fcn.00423181
add esp, 0x1c
lea ecx, [esp + 0xec]
mov byte [esp + 0x20c], bl
call fcn.004231ba
lea ecx, [esp + 0xec]
call fcn.00429fca
lea ecx, [esp + 0xd4]
call fcn.0041ca36
lea ecx, [esp + 0x54]
call fcn.00424075
lea ecx, [esp + 0xac]
call fcn.00429030
lea ecx, [esp + 0x80]
call fcn.00429e47
lea ecx, [esp + 0x1e8]
call fcn.00429e93
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d1ae
mov esp, ebp
pop ebp
ret 0x24