Function at 0x10030050
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.0x100300a9
jmp dword [edi*4 + 0x10030628]
push esi
push ebp
call fcn.1002b990
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x100300c9
mov eax, 0xfffffae2
jmp 0x1003060c
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 0x1003036c
cmp edi, 4
je 0x1003036c
cmp edi, 5
je 0x1003036c
push dword [esp + 0x30]
call fcn.1002bb40
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10030119
mov eax, 0xfffffbb0
jmp 0x1003060c
push 1
push eax
call fcn.1002b230
mov ebx, eax
test ebx, ebx
je 0x100302a2
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 0x1003025d
test edi, edi
je 0x1003025d
cmp dword [edi + 0x14], 0
je 0x1003023f
push 0x23c
call fcn.10026f70
mov esi, eax
test esi, esi
je 0x10030298
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 0x100301b0
movzx eax, byte [edi + 0x1a]
mov word [esi + 0x12], ax
movzx eax, byte [edi + 0x1b]
mov word [esi + 0x10], ax
jmp 0x100301b6
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, ecx
cmp eax, 0xa
je 0x100301c8
cmp eax, 0xc
je 0x100301c8
movzx eax, word [edi + 0x18]
jmp 0x100301ce
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 0x100301e1
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 0x1003022c
mov dword [ebx + 0x28], esi
jmp 0x10030232
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 0x10030163
test eax, eax
jle 0x1003025d
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.1002bbd0
push 0x1006dfd8
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 0x100302ac
push ebx
push dword [esp + 0x28]
call fcn.1002b8b0
mov eax, esi
jmp 0x1003060c
push ebx
push dword [esp + 0x28]
call fcn.1002b8b0
mov eax, 0xfffffc0d
jmp 0x1003060c
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 0x1003060c
test ebx, ebx
je case.default.0x100300a9
mov eax, dword [ebp + 8]
push dword [esp + 0x10]
test eax, eax
je 0x1003038b
lea ecx, [esp + 0x6b0]
push ecx
push ebx
push eax
jmp 0x1003039a
lea eax, [esp + 0x6b0]
push eax
mov eax, dword [ebp + 4]
push ebx
push dword [eax + 8]
call fcn.100217d0
cmp eax, 0xfffffc16
jne 0x100303bd
push 1
push ebx
push 0xffffdffa
call fcn.10025d10
mov eax, 0xfffffc16
jmp 0x1003060c
lea eax, [esp + 0x6ac]
push eax
push ebp
call fcn.1002b910
mov esi, eax
test esi, esi
jne 0x100303db
mov eax, 0xfffffa1d
jmp 0x1003060c
cmp dword [esi + 0x14], 0
je 0x100303d1
test edi, edi
jne 0x10030490
mov eax, dword [esi + 0x10]
mov dword [esp + 0x40], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x44], ecx
cmp ecx, 0x10
jne 0x10030414
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 0x1003044c
cmp dword [esp + 0x34], 1
jne 0x1003042f
lea eax, [esp + 0x48]
push eax
push dword [ebp + 8]
call dword [0x10075d54]
mov ecx, dword [esp + 0x44]
jmp 0x10030436
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x48], eax
cmp ecx, 0xa
je 0x10030446
cmp ecx, 0xc
je 0x10030446
movzx eax, word [esi + 0x18]
jmp 0x1003044c
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 0x10030460
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 0x1003060c
cmp edi, 4
jne 0x100305bc
mov eax, dword [esi + 0x10]
mov dword [esp + 0x90], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x94], ecx
cmp ecx, 0x10
jne 0x100304d0
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 0x10030511
cmp dword [esp + 0x34], 1
jne 0x100304f1
lea eax, [esp + 0x98]
push eax
push dword [ebp + 8]
call dword [0x10075d54]
mov ecx, dword [esp + 0x94]
jmp 0x100304fb
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x98], eax
cmp ecx, 0xa
je 0x1003050b
cmp ecx, 0xc
je 0x1003050b
movzx eax, word [esi + 0x18]
jmp 0x10030511
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 0x10030528
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.10053053
xor eax, eax
push 0xff
mov word [esp + 0x2b2], ax
lea eax, [esp + 0x2b4]
push ebx
push eax
call fcn.10053053
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 0x1003060c
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 0x1003060c
mov eax, 0xfffffc17
jmp 0x1003060c
mov eax, 0xfffffc15
mov ecx, dword [esp + 0x8f8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005268d
add esp, 0x8ec
ret 0x18