Function at 0x4e20f0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5a2a8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], ebp
mov eax, 1
xor ebx, ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
cmp dword [esp + eax*4 + 0x2c], ebx
jne 0x4e2213
mov ecx, dword [esp + 0x128]
mov dword [ecx], ebx
xor eax, eax
jmp 0x4e24f5
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.00459e30
mov edx, dword [esp + 0x128]
mov edi, dword [edx + 4]
cmp edi, ebx
mov dword [esp + 0x120], ebx
je 0x4e2279
mov eax, edi
mov esi, dword [eax + 8]
cmp esi, ebx
mov edi, dword [edi]
je 0x4e2259
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x4e2259
push 0x5b3d3c
mov ecx, esi
call fcn.00591e20
test eax, eax
jne 0x4e225b
xor esi, esi
push 3
mov ecx, esi
call fcn.00439100
cmp eax, 0x12c
jle 0x4e2275
push esi
lea ecx, [esp + 0x18]
call fcn.00457d50
cmp edi, ebx
jne 0x4e2233
cmp dword [esp + 0x20], ebx
jne 0x4e22a3
mov ecx, dword [esp + 0x130]
mov dword [ecx], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x120], 0xffffffff
call fcn.00459e50
xor eax, eax
jmp 0x4e24f3
cmp dword [esp + 0x12c], 0xa
jl 0x4e2288
lea ecx, [esp + 0xf8]
call fcn.00459e30
lea ecx, [esp + 0xd8]
mov byte [esp + 0x120], 1
call fcn.00459e30
mov ecx, dword [ebp + 0x40]
lea edx, [esp + 0xf8]
push edx
mov byte [esp + 0x124], 2
call fcn.0044a990
mov edi, dword [esp + 0xfc]
cmp edi, ebx
je 0x4e2369
mov ebp, 0x1000
mov eax, edi
mov esi, dword [eax + 8]
cmp esi, ebx
mov edi, dword [edi]
je 0x4e231b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x4e231b
push 0x5b3d3c
mov ecx, esi
call fcn.00591e20
test eax, eax
jne 0x4e231d
xor esi, esi
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x40]
call fcn.0044d650
test eax, eax
je 0x4e2344
mov ecx, esi
call fcn.004394c0
test eax, eax
je 0x4e234c
mov ecx, esi
call fcn.004394c0
cmp eax, 1
jmp 0x4e234a
test dword [esi + 0xe8], ebp
jne 0x4e2361
cmp dword [esi + 0x80], ebx
jne 0x4e2361
lea ecx, [esp + 0xd8]
push esi
call fcn.00457d50
cmp edi, ebx
jne 0x4e22f5
mov ebp, dword [esp + 0x10]
cmp dword [esp + 0xe4], ebx
jne 0x4e237b
lea ecx, [esp + 0xd8]
jmp 0x4e23f5
lea ecx, [esp + 0x14]
call fcn.00457510
push eax
push 0x5b3d3c
call fcn.0040b380
mov ecx, dword [ebp + 0x3c]
mov esi, eax
mov eax, dword [ecx]
add esp, 8
xor edi, edi
call dword [eax + 0xac]
mov ecx, eax
call fcn.00434030
cmp eax, 5
jne 0x4e23b2
mov edi, 0x1e
push 3
mov ecx, esi
call fcn.00439100
mov ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov eax, edx
imul eax, eax
cdq
sub eax, edx
sar eax, 1
push 1
add eax, edi
mov edi, dword [sym.imp.SanCalc.dll_int___cdecl_kakuritsu_int__enum_RANDOM_KIND__int_]
push 0xb
push eax
call edi
add esp, 0xc
test eax, eax
lea ecx, [esp + 0xd8]
jne 0x4e2423
mov edx, dword [esp + 0x130]
mov dword [edx], ebx
mov byte [esp + 0x120], 1
call fcn.00459e50
lea ecx, [esp + 0xf8]
mov byte [esp + 0x120], bl
call fcn.00459e50
jmp 0x4e2288
call fcn.00457510
push eax
push 0x5b3d3c
call fcn.0040b380
mov esi, dword [esi + 0x50]
mov ebp, eax
mov eax, dword [ebp + 0x50]
add esp, 8
cmp esi, eax
push eax
jl 0x4e2477
call fcn.004109b0
push esi
mov dword [esp + 0x18], eax
call fcn.004109b0
mov ecx, dword [esp + 0x18]
push 1
sub eax, ecx
push 0xb
push eax
call edi
mov ecx, dword [esp + 0x144]
add esp, 0x14
neg eax
sbb eax, eax
and eax, 3
add eax, 4
mov dword [ecx], eax
jmp 0x4e24b6
call fcn.004109b0
mov ecx, 0x46
sub ecx, eax
push esi
mov dword [esp + 0x18], ecx
call fcn.004109b0
mov ecx, dword [esp + 0x18]
add ecx, eax
push ecx
push ebx
call dword [sym.imp.SanCalc.dll_int___cdecl_max_int__int_]
push 1
push 0xb
push eax
call edi
mov edx, dword [esp + 0x14c]
add esp, 0x1c
neg eax
sbb eax, eax
and eax, 3
inc eax
mov dword [edx], eax
lea ecx, [esp + 0xd8]
mov byte [esp + 0x120], 1
call fcn.00459e50
lea ecx, [esp + 0xf8]
mov byte [esp + 0x120], bl
call fcn.00459e50
lea ecx, [esp + 0x14]
mov dword [esp + 0x120], 0xffffffff
call fcn.00459e50
mov eax, ebp
pop edi
pop esi
mov ecx, dword [esp + 0x110]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 0xc