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

Disassembly:
sub esp, 0x8ec
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x8e8], eax
mov eax, dword [esp + 0x8fc]
push ebx
mov ebx, dword [esp + 0x8fc]
push ebp
mov ebp, dword [esp + 0x8f8]
push esi
mov esi, dword [esp + 0x900]
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x34]
push eax
push 0
mov dword [esp + 0x38], ebp
call dword [0x10075d60]
mov edi, dword [esp + 0x914]
cmp edi, 5
ja case.default.0x100300d9
jmp dword [edi*4 + 0x10030658]
push esi
push ebp
call fcn.1002b9b0
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x100300f9
mov eax, 0xfffffae2
jmp 0x1003063c
mov ebp, dword [eax + 4]
lea ecx, [esp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x38], eax
push ecx
mov eax, dword [eax + 4]
push dword [eax + 8]
call dword [0x10075d64]
test edi, edi
je 0x1003039c
cmp edi, 4
je 0x1003039c
cmp edi, 5
je 0x1003039c
push dword [esp + 0x30]
call fcn.1002bb60
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10030149
mov eax, 0xfffffbb0
jmp 0x1003063c
push 1
push eax
call fcn.1002b250
mov ebx, eax
test ebx, ebx
je 0x100302d2
xor eax, eax
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], 0
cmp dword [ebp + 0x18], 1
mov edi, dword [ebp + 0x40]
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
je 0x1003028d
test edi, edi
je 0x1003028d
cmp dword [edi + 0x14], 0
je 0x1003026f
push 0x23c
call fcn.10026f70
mov esi, eax
test esi, esi
je 0x100302c8
mov eax, dword [esp + 0x2c]
mov dword [esi + 4], eax
inc eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x2c], eax
mov dword [esi + 0xc], ecx
cmp ecx, 0x10
jne 0x100301e0
movzx eax, byte [edi + 0x1a]
mov word [esi + 0x12], ax
movzx eax, byte [edi + 0x1b]
mov word [esi + 0x10], ax
jmp 0x100301e6
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, ecx
cmp eax, 0xa
je 0x100301f8
cmp eax, 0xc
je 0x100301f8
movzx eax, word [edi + 0x18]
jmp 0x100301fe
movzx eax, word [edi + 0x18]
add eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0xc]
cmp dword [ecx + 0x1c], 1
jne 0x10030211
and eax, 0xffffffdf
mov dword [esi + 0x18], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
push dword [eax + 8]
call dword [0x10075d64]
push dword [esp + 0x10]
lea eax, [esi + 0x1c]
push 0xb
push eax
lea eax, [edi + 0x1c]
push eax
call fcn.100265b0
push dword [esp + 0x10]
lea eax, [esi + 0x32]
push 0x105
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.100265b0
cmp dword [ebx + 0x28], 0
jne 0x1003025c
mov dword [ebx + 0x28], esi
jmp 0x10030262
mov eax, dword [esp + 0x28]
mov dword [eax], esi
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], eax
mov edi, dword [edi]
test edi, edi
jne 0x10030193
test eax, eax
jle 0x1003028d
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x24], 2
mov dword [ebx + 0x2c], eax
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
call fcn.1002bbf0
push 0x1006dfe0
push dword [ebx + 0xc]
lea ecx, [esp + 0x28]
mov eax, dword [eax + 0x50]
push ecx
push dword [esp + 0x3c]
mov eax, dword [eax + 0x24]
call eax
mov esi, eax
test esi, esi
je 0x100302dc
push ebx
push dword [esp + 0x28]
call fcn.1002b8d0
mov eax, esi
jmp 0x1003063c
push ebx
push dword [esp + 0x28]
call fcn.1002b8d0
mov eax, 0xfffffc0d
jmp 0x1003063c
mov ecx, dword [esp + 0x38]
mov edx, 0x38
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x10], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0x910]
cmp ecx, edx
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
mov eax, ecx
push ecx
push dword [esp + 0x18]
cmova eax, edx
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
push edx
push eax
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], 2
mov dword [esp + 0x7c], 3
mov dword [esp + 0x80], 4
mov dword [esp + 0x84], 5
mov dword [esp + 0x88], 6
mov dword [esp + 0x8c], 7
mov dword [esp + 0x90], 8
mov dword [esp + 0x94], 9
mov dword [esp + 0x98], 1
call fcn.10025940
jmp 0x1003063c
test ebx, ebx
je case.default.0x100300d9
mov eax, dword [ebp + 8]
push dword [esp + 0x10]
test eax, eax
je 0x100303bb
lea ecx, [esp + 0x6b0]
push ecx
push ebx
push eax
jmp 0x100303ca
lea eax, [esp + 0x6b0]
push eax
mov eax, dword [ebp + 4]
push ebx
push dword [eax + 8]
call fcn.100217d0
cmp eax, 0xfffffc16
jne 0x100303ed
push 1
push ebx
push 0xffffdffa
call fcn.10025d10
mov eax, 0xfffffc16
jmp 0x1003063c
lea eax, [esp + 0x6ac]
push eax
push ebp
call fcn.1002b930
mov esi, eax
test esi, esi
jne 0x1003040b
mov eax, 0xfffffa1d
jmp 0x1003063c
cmp dword [esi + 0x14], 0
je 0x10030401
test edi, edi
jne 0x100304c0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x40], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x44], ecx
cmp ecx, 0x10
jne 0x10030444
movzx eax, byte [esi + 0x1a]
mov word [esp + 0x4a], ax
movzx eax, byte [esi + 0x1b]
mov word [esp + 0x48], ax
movzx eax, word [esi + 0x18]
jmp 0x1003047c
cmp dword [esp + 0x34], 1
jne 0x1003045f
lea eax, [esp + 0x48]
push eax
push dword [ebp + 8]
call dword [0x10075d54]
mov ecx, dword [esp + 0x44]
jmp 0x10030466
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x48], eax
cmp ecx, 0xa
je 0x10030476
cmp ecx, 0xc
je 0x10030476
movzx eax, word [esi + 0x18]
jmp 0x1003047c
movzx eax, word [esi + 0x18]
add eax, eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x1c], 1
mov eax, dword [esi + 0xc]
jne 0x10030490
and eax, 0xffffffdf
mov ecx, dword [esp + 0x910]
mov edx, 0x18
mov dword [esp + 0x50], eax
cmp ecx, edx
push ecx
push dword [esp + 0x18]
mov eax, ecx
cmova eax, edx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push edx
push eax
call fcn.10025940
jmp 0x1003063c
cmp edi, 4
jne 0x100305ec
mov eax, dword [esi + 0x10]
mov dword [esp + 0x90], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x94], ecx
cmp ecx, 0x10
jne 0x10030500
movzx eax, byte [esi + 0x1a]
mov word [esp + 0x9a], ax
movzx eax, byte [esi + 0x1b]
mov word [esp + 0x98], ax
movzx eax, word [esi + 0x18]
jmp 0x10030541
cmp dword [esp + 0x34], 1
jne 0x10030521
lea eax, [esp + 0x98]
push eax
push dword [ebp + 8]
call dword [0x10075d54]
mov ecx, dword [esp + 0x94]
jmp 0x1003052b
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x98], eax
cmp ecx, 0xa
je 0x1003053b
cmp ecx, 0xc
je 0x1003053b
movzx eax, word [esi + 0x18]
jmp 0x10030541
movzx eax, word [esi + 0x18]
add eax, eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x1c], 1
mov eax, dword [esi + 0xc]
jne 0x10030558
and eax, 0xffffffdf
push dword [esp + 0x10]
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x6f0]
push 0x105
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.100265b0
push 0xff
lea eax, [esp + 0x6f0]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.100530c3
xor eax, eax
push 0xff
mov word [esp + 0x2b2], ax
lea eax, [esp + 0x2b4]
push ebx
push eax
call fcn.100530c3
mov ecx, dword [esp + 0x928]
add esp, 0x18
xor eax, eax
mov edx, 0x418
mov word [esp + 0x4a2], ax
cmp ecx, edx
mov eax, ecx
push ecx
push dword [esp + 0x18]
cmova eax, edx
mov dword [esp + 0x94], eax
lea eax, [esp + 0x94]
push edx
push eax
call fcn.10025940
jmp 0x1003063c
mov ecx, dword [esp + 0x910]
xor eax, eax
mov edx, 0x208
mov word [esp + 0x4ac], ax
push ecx
push dword [esp + 0x18]
cmp ecx, edx
mov dword [esp + 0x4b0], 0
mov eax, ecx
cmova eax, edx
mov dword [esp + 0x4ac], eax
lea eax, [esp + 0x4ac]
push edx
push eax
call fcn.10025940
jmp 0x1003063c
mov eax, 0xfffffc17
jmp 0x1003063c
mov eax, 0xfffffc15
mov ecx, dword [esp + 0x8f8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100526fd
add esp, 0x8ec
ret 0x18