Function at 0x10048030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10216eba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
lea esi, [edi + 0x140]
push esi
mov dword [esp + 0xa8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 0xc]
mov ecx, edi
and dword [esp + 0xdc], 0
push ebx
push 4
pop edx
call fcn.1004621c
pop ecx
test al, al
je 0x10048090
mov byte [esp + 0x27], 0
jmp 0x100480a4
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0xbc]
mov al, byte [ebp + 0x14]
mov byte [esp + 0x27], al
mov edx, ebx
mov ecx, edi
call fcn.10047fd1
test eax, eax
js 0x100480b8
xor bl, bl
jmp 0x100489c6
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x3c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x260]
push ecx
push ecx
mov eax, esp
lea ecx, [esp + 0x24]
mov dword [eax], str.overflow_tooltip
mov dword [eax + 4], 0x10
call fcn.100026b6
push 0
push ecx
mov ecx, str.role
mov byte [esp + 0xe4], 1
mov edi, esp
call fcn.100431ee
mov dword [edi], eax
lea ecx, [ebx + 0x14]
lea eax, [esp + 0x54]
push eax
call fcn.10013d11
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.100206ad
lea ecx, [esp + 0x4c]
mov bl, al
call fcn.100026e7
lea ecx, [esp + 0x1c]
mov byte [esp + 0xdc], 0
call fcn.100026e7
test bl, bl
je 0x100481ca
mov ebx, dword [ebp + 8]
push ecx
push ecx
push esp
mov ecx, ebx
call fcn.1006e10b
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx]
lea ecx, [esp + 0xb4]
push ecx
mov ecx, ebx
call dword [eax + 0x1f8]
mov ecx, eax
call fcn.1000e8ff
mov ebx, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
push ecx
mov ecx, ebx
mov dword [esp + 0x4c], eax
call fcn.10044df0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
sub eax, dword [ebx + 0x4c]
sub ecx, dword [ebx + 0x50]
add edx, dword [ebx + 0x54]
add edi, dword [ebx + 0x58]
sub eax, dword [ebx + 0x5c]
sub ecx, dword [ebx + 0x60]
add edx, dword [ebx + 0x64]
add edi, dword [ebx + 0x68]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edi
jmp 0x100481cd
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.10044eda
test eax, eax
je 0x10048204
mov edx, dword [eax]
lea ecx, [esp + 0x94]
push ecx
mov ecx, eax
call dword [edx + 0x210]
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 4]
mov ecx, dword [eax + 8]
inc edx
sub ecx, dword [eax]
inc ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
jmp 0x1004821e
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
inc ecx
sub eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
mov dword [esp + 0x4c], ecx
mov ecx, ebx
push 1
call dword [eax + 0x40c]
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax + 0x424]
mov eax, dword [ebx + 0x74]
or dword [ebx + 0x70], 0x8000000
mov dword [ebx + 0x74], eax
xor eax, eax
or dword [ebx + 0xe0], 0x10
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
push ebx
lea ecx, [esp + 0x60]
mov byte [esp + 0xe0], 2
call fcn.1000fdf5
push edi
lea ecx, [esp + 0x5c]
call fcn.1000fdf5
cmp byte [esp + 0x27], 0
mov edi, dword [esp + 0x20]
je 0x1004829f
push dword [edi + 0x84]
lea ecx, [esp + 0x64]
call fcn.1000fdf5
lea eax, [esp + 0x58]
push eax
lea ecx, [edi + 0xe0]
call fcn.1004ccc8
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x100482c9
cmp eax, dword [0x102b7738]
jne 0x100482c9
push 0
push ecx
push edi
mov ecx, ebx
call fcn.10079533
mov edx, dword [ebp + 8]
mov ecx, edi
push 0
push 7
push ebx
call fcn.10047f49
add esp, 0xc
mov ecx, edi
push dword [ebp + 8]
call fcn.10013630
cmp byte [esp + 0x27], 0
mov eax, dword [ebx + 0x74]
mov dword [ebx + 0x74], eax
je 0x1004830a
or dword [ebx + 0x70], 0x2000
mov ecx, edi
mov eax, dword [edi]
push 0
push 0
push ebx
call dword [eax + 0x1f4]
jmp 0x1004830e
or dword [ebx + 0x70], 0x20
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x50]
push eax
call fcn.1006e168
mov eax, dword [edi]
lea ecx, [esp + 0x74]
movdqa xmm0, xmmword [0x102711a0]
push ecx
push dword [ebp + 8]
mov ecx, edi
movdqu xmmword [esp + 0x7c], xmm0
call dword [eax + 0xc8]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x74]
push ecx
push ecx
mov ecx, dword [esp + 0x88]
mov edx, esp
sub ecx, dword [esp + 0x80]
inc ecx
inc eax
push ecx
push ecx
mov dword [edx], eax
mov eax, esp
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x5c]
push edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x274]
mov eax, dword [ebx]
lea ecx, [esp + 0x94]
push ecx
mov ecx, ebx
call dword [eax + 0x1fc]
mov edi, dword [ebx + 0x48]
mov dword [esp + 0x28], edi
xor edi, edi
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 4]
mov eax, ecx
and dword [esp + 0xc], 0
and dword [esp + 0x10], 0
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0x14], eax
mov eax, edx
mov edx, dword [ebx + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x3c]
test eax, eax
cmovs eax, edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x30], eax
xor eax, eax
test ecx, ecx
push edi
cmovs ecx, eax
test edx, edx
mov dword [esp + 0x30], ecx
cmovs edx, eax
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov dword [esp + 0x20], edx
test eax, eax
cmovs eax, ecx
lea ecx, [edi + 0xc4]
mov dword [esp + 0x2c], eax
call fcn.10082295
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, ecx
shr edx, 0x10
and edx, 0xf
mov dword [esp + 0x34], edx
jne 0x100488f8
and dword [esp + 0x4c], 0
mov eax, dword [eax]
cmp eax, 6
ja 0x1004861a
je 0x10048597
dec eax
je 0x1004887d
dec eax
je 0x100484c5
dec eax
je 0x10048865
dec eax
jne 0x1004884a
push 4
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x44]
call fcn.10016710
push eax
push 4
lea ecx, [esp + 0x14]
call fcn.10016604
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x3c]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0xc]
add edi, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x18], eax
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
push edx
call dword [eax + 0xcc]
cmp edi, dword [esp + 0xc]
jne 0x100484b7
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x14]
je 0x10048841
mov eax, dword [ebp + 0x10]
mov dword [eax], 6
jmp 0x10048826
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x100484d7
mov ecx, dword [0x102b7738]
jmp 0x100484ec
cmp ecx, dword [0x102b7738]
jne 0x100484ec
push 0
push ecx
push edi
mov ecx, eax
call fcn.10079533
mov ecx, eax
cmp dword [ecx + 0x44], 0xff
je 0x10048513
cmp dword [ecx + 0x44], 1
jne 0x10048513
push 3
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x44]
call fcn.10016710
push eax
push 9
jmp 0x1004852a
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x6c]
push eax
push 7
lea ecx, [esp + 0x14]
call fcn.10016604
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x3c]
add dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
add edi, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], edi
push edx
call dword [eax + 0xcc]
cmp edi, dword [esp + 0x10]
jne 0x10048589
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x18]
je 0x10048841
mov eax, dword [ebp + 0x10]
mov dword [eax], 8
jmp 0x10048826
push 6
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x44]
call fcn.10016710
push eax
push 6
lea ecx, [esp + 0x14]
call fcn.10016604
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x3c]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0xc]
add edi, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x18], eax
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
push edx
call dword [eax + 0xcc]
cmp edi, dword [esp + 0xc]
jne 0x1004860c
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x14]
je 0x10048841
mov eax, dword [ebp + 0x10]
mov dword [eax], 4
jmp 0x10048826
sub eax, 7
je 0x100488b6
dec eax
je 0x10048753
dec eax
je 0x1004889d
sub eax, 0xb
je 0x100486cf
dec eax
dec eax
jne 0x10048896
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xc]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x8c]
push eax
push 7
call fcn.10016604
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x3c]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0xc]
add edi, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x18], eax
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
push edx
call dword [eax + 0xcc]
cmp edi, dword [esp + 0xc]
jne 0x100486c1
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x14]
je 0x10048841
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x14
jmp 0x10048826
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x64]
push eax
push 9
call fcn.10016604
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x3c]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0xc]
add edi, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x18], eax
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
push edx
call dword [eax + 0xcc]
cmp edi, dword [esp + 0xc]
jne 0x10048745
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x14]
je 0x10048841
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x16
jmp 0x10048826
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x10048765
mov ecx, dword [0x102b7738]
jmp 0x1004877a
cmp ecx, dword [0x102b7738]
jne 0x1004877a
push 0
push ecx
push edi
mov ecx, eax
call fcn.10079533
mov ecx, eax
cmp dword [ecx + 0x44], 0xff
je 0x100487ab
cmp dword [ecx + 0x44], 1
jne 0x100487ab
mov eax, dword [esp + 0x44]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x84]
push eax
push 3
jmp 0x100487c2
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
push eax
push 1
lea ecx, [esp + 0x14]
call fcn.10016604
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x3c]
add dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
add edi, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], edi
push edx
call dword [eax + 0xcc]
cmp edi, dword [esp + 0x10]
jne 0x1004881d
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x18]
je 0x10048841
mov eax, dword [ebp + 0x10]
mov dword [eax], 2
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x4c], ecx
cmp ecx, 2
jge 0x1004894f
jmp 0x10048415
mov edi, dword [esp + 0x20]
jmp 0x1004894f
dec eax
jne 0x10048896
push 5
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x44]
call fcn.10016710
push eax
push 5
jmp 0x100488cd
push 3
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x44]
call fcn.10016710
push eax
push 3
jmp 0x100488cd
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
push eax
push 1
jmp 0x100488cd
xor bl, bl
jmp 0x100489b5
mov eax, dword [esp + 0x44]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
push eax
push 9
jmp 0x100488cd
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
push eax
push 7
lea ecx, [esp + 0x14]
call fcn.10016604
mov eax, dword [esp + 0x30]
add dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x18], eax
jmp 0x1004894f
and ecx, 0xf
lea eax, [esp + 0x94]
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.10016710
push eax
push dword [esp + 0x38]
lea ecx, [esp + 0x14]
call fcn.10016604
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
add dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x18], eax
mov eax, dword [edi]
push ecx
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [ebx + 0x40]
xor ecx, ecx
mov edx, dword [ebx + 0x60]
test eax, eax
push 0
cmovns eax, ecx
add edx, dword [ebx + 0x50]
add edx, eax
mov eax, dword [ebx + 0x3c]
test eax, eax
push 8
cmovns eax, ecx
mov ecx, dword [ebx + 0x5c]
add ecx, dword [ebx + 0x4c]
add edx, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esp + 0x14]
add eax, ecx
mov dword [ebx + 0x7c], edx
mov edx, dword [ebp + 8]
mov ecx, edi
push ebx
mov dword [ebx + 0x78], eax
call fcn.10047f49
pop ecx
mov ecx, dword [ebp + 8]
mov eax, esp
push edi
and dword [eax + 4], 0
mov dword [eax], 0x10000
call fcn.1007ba1b
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x244]
xor ebx, ebx
inc ebx
lea ecx, [esp + 0x58]
mov byte [esp + 0xdc], 0
call fcn.10040054
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xd4]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14