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

Disassembly:
push 0xffffffffffffffff
push 0x10040888
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x1005a690]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1005a690]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x28], ebp
push 0x20
push 0xe
call fcn.10030dd0
mov ebx, dword [esp + 0xb8]
mov edi, eax
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
sar ecx, 2
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
sar eax, 2
shr eax, 1
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebx + 0x28]
sar eax, 2
mov dword [edi + 0x10], eax
mov esi, dword [ebx + 0x1c]
mov dword [edi + 0x14], esi
mov edx, dword [ebx + 0x20]
mov dword [edi + 0x18], edx
mov eax, dword [ebp]
test dword [eax + 0x14], 0x100000
je 0x10030428
mov eax, esi
and eax, dword [ebp + 0x34]
cmp eax, dword [ebp + 0x34]
je 0x10030404
mov eax, esi
and eax, dword [ebp + 0x38]
cmp eax, dword [ebp + 0x38]
jne 0x1003040c
mov eax, dword [ebp + 0x3c]
or eax, esi
mov dword [edi + 0x14], eax
mov eax, edx
and eax, dword [ebp + 0x34]
cmp eax, dword [ebp + 0x34]
je 0x10030420
mov eax, edx
and eax, dword [ebp + 0x38]
cmp eax, dword [ebp + 0x38]
jne 0x10030428
mov eax, dword [ebp + 0x3c]
or eax, edx
mov dword [edi + 0x18], eax
mov al, byte [ebx + 0x18]
mov byte [edi + 0x1c], al
mov al, byte [ebx + 0x19]
test al, al
sete al
mov byte [edi + 0x1d], al
mov eax, dword [ebp]
mov esi, dword [ebx]
sub edi, dword [eax + 0x138]
mov dword [esp + 0x30], edi
mov edi, dword [ebx + 4]
cmp esi, edi
je 0x10030515
mov ecx, dword [ebp]
xor ebx, ebx
cmp word [esi + 2], bx
mov eax, dword [ecx + 0x134]
setne bl
sub eax, dword [ecx + 0x13c]
add ecx, 0x134
mov dword [esp + 0x14], ecx
add ebx, 2
add ebx, ebx
cmp eax, ebx
jae 0x1003048f
mov edx, ebx
sub edx, dword [ecx + 4]
add edx, dword [ecx + 8]
call fcn.1003e2c0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 8]
mov dword [esp + 0x14], edx
lea eax, [ebx + edx]
mov dword [ecx + 8], eax
mov al, byte [ebp + 0xc]
movzx ecx, word [esi]
mov ebx, dword [ebp + 4]
test al, al
je 0x100304bb
mov edx, dword [ebx]
mov edx, dword [edx]
call fcn.1003d250
mov edx, dword [esp + 0x14]
movzx eax, ax
jmp 0x100304bd
mov eax, ecx
mov word [edx], ax
movzx ecx, word [esi + 2]
test cx, cx
je 0x100304fd
mov al, byte [ebp + 0xc]
mov ebx, dword [ebp + 4]
test al, al
je 0x100304ef
mov edx, dword [ebx]
mov edx, dword [edx]
call fcn.1003d250
mov edx, dword [esp + 0x14]
movzx eax, ax
mov word [edx + 2], ax
xor eax, eax
mov word [edx + 4], ax
jmp 0x10030503
mov eax, ecx
mov word [edx + 2], ax
xor eax, eax
mov word [edx + 4], ax
jmp 0x10030503
xor eax, eax
mov word [edx + 2], ax
add esi, 4
cmp esi, edi
jne 0x10030453
mov ebx, dword [esp + 0xb8]
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
cmp esi, edi
je 0x10030bd1
mov dx, word [esi]
mov al, byte [ebp + 0xc]
mov bx, word [esi + 2]
mov word [esp + 0x20], dx
mov edx, dword [ebp + 4]
mov word [esp + 0x22], bx
test al, al
je 0x10030550
mov edx, dword [edx]
mov ecx, dword [esp + 0x20]
mov edx, dword [edx]
call fcn.1003d250
mov word [esp + 0x20], ax
mov cl, byte [ebp + 0xc]
mov edx, dword [ebp + 4]
test cl, cl
je 0x1003056f
mov edx, dword [edx]
mov ecx, dword [esp + 0x22]
mov edx, dword [edx]
call fcn.1003d250
mov bx, ax
mov word [esp + 0x22], bx
mov ax, word [esi + 4]
mov cl, byte [ebp + 0xc]
mov dx, word [esi + 6]
mov word [esp + 0x18], ax
mov eax, dword [ebp + 4]
mov word [esp + 0x1a], dx
test cl, cl
je 0x100305a2
mov edx, dword [eax]
mov ecx, dword [esp + 0x18]
mov edx, dword [edx]
call fcn.1003d250
mov dx, word [esp + 0x1a]
mov word [esp + 0x18], ax
mov cl, byte [ebp + 0xc]
mov eax, dword [ebp + 4]
test cl, cl
je 0x100305c1
mov edx, dword [eax]
mov ecx, dword [esp + 0x1a]
mov edx, dword [edx]
call fcn.1003d250
mov dx, ax
mov word [esp + 0x1a], dx
xor eax, eax
add esi, 8
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
mov dword [esp + 0xb0], eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], eax
mov word [esp + 0x34], ax
mov eax, dword [ebp]
mov byte [esp + 0xb0], 1
test dword [eax + 0x14], 0x200000
je 0x10030911
mov ax, word [esp + 0x20]
mov word [esp + 0x94], ax
xor eax, eax
mov word [esp + 0x98], ax
mov ax, word [esp + 0x18]
mov word [esp + 0x9c], ax
xor eax, eax
mov word [esp + 0xa0], ax
lea ecx, [esp + 0x96]
lea eax, [esp + 0x98]
test bx, bx
cmove eax, ecx
mov ecx, dword [ebp + 4]
push eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x6c]
push eax
mov word [esp + 0xa2], bx
mov word [esp + 0xaa], dx
call fcn.1003b9a0
mov ebx, eax
lea eax, [esp + 0x4c]
cmp eax, ebx
je 0x100306f8
cmp dword [esp + 0x60], 8
jb 0x10030694
push dword [esp + 0x4c]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
cmp dword [ebx + 0x14], 8
jae 0x100306cb
mov eax, dword [ebx + 0x10]
inc eax
je 0x100306d7
add eax, eax
push eax
lea eax, [esp + 0x50]
push ebx
push eax
call dword [sym.imp.MSVCR110.dll_memmove]
add esp, 0xc
jmp 0x100306d7
mov eax, dword [ebx]
mov dword [esp + 0x4c], eax
mov dword [ebx], 0
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp dword [esp + 0x78], 8
jb 0x1003070b
push dword [esp + 0x64]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp word [esp + 0x9e], 0
lea ecx, [esp + 0x9e]
lea eax, [esp + 0xa0]
cmove eax, ecx
mov ecx, dword [ebp + 4]
push eax
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.1003b9a0
mov ebx, eax
lea eax, [esp + 0x34]
cmp eax, ebx
je 0x100307c0
cmp dword [esp + 0x48], 8
jb 0x1003075c
push dword [esp + 0x34]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
cmp dword [ebx + 0x14], 8
jae 0x10030793
mov eax, dword [ebx + 0x10]
inc eax
je 0x1003079f
add eax, eax
push eax
lea eax, [esp + 0x38]
push ebx
push eax
call dword [sym.imp.MSVCR110.dll_memmove]
add esp, 0xc
jmp 0x1003079f
mov eax, dword [ebx]
mov dword [esp + 0x34], eax
mov dword [ebx], 0
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp dword [esp + 0x78], 8
jb 0x100307d3
push dword [esp + 0x64]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x5c], 0
jne 0x1003086a
xor eax, eax
cmp dword [esp + 0x60], 8
mov ecx, 7
mov edx, 1
mov dword [esp + 0x78], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], edx
jb 0x10030811
push dword [esp + 0x4c]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
cmp ecx, 8
jae 0x1003085a
lea eax, [edx + 1]
test eax, eax
je 0x10030862
add eax, eax
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.MSVCR110.dll_memmove]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
add esp, 0xc
jmp 0x10030862
mov eax, dword [esp + 0x64]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
cmp dword [esp + 0x44], 0
jne 0x10030a5e
xor eax, eax
cmp dword [esp + 0x48], 8
mov ecx, 7
mov edx, 1
mov dword [esp + 0x78], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], edx
jb 0x100308a8
push dword [esp + 0x34]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
cmp ecx, 8
jae 0x100308fc
lea eax, [edx + 1]
test eax, eax
je 0x10030904
add eax, eax
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.MSVCR110.dll_memmove]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
add esp, 0xc
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
jmp 0x10030a5e
mov eax, dword [esp + 0x64]
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ecx
jmp 0x10030a5e
lea ecx, [esp + 0x4c]
test bx, bx
je 0x10030971
push dword [esp + 0x20]
push 1
push 0
call fcn.10025a20
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
cmovae ecx, dword [esp + 0x4c]
lea eax, [ecx + eax*2]
lea ecx, [esp + 0x4c]
cmovae ecx, dword [esp + 0x4c]
test eax, eax
jne 0x1003095b
push dword [esp + 0x22]
lea ecx, [esp + 0x50]
push 1
push eax
call fcn.10025a20
jmp 0x100309c0
push dword [esp + 0x22]
sub eax, ecx
sar eax, 1
push 1
push eax
lea ecx, [esp + 0x58]
call fcn.10025a20
jmp 0x100309c0
mov ax, word [esp + 0x20]
mov word [esp + 0x64], ax
xor eax, eax
mov word [esp + 0x66], ax
mov dword [esp + 0x5c], eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 1
mov dword [esp + 0x64], 7
call fcn.1000a660
cmp dword [esp + 0x78], 8
jb 0x100309c0
push dword [esp + 0x64]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp word [esp + 0x1a], 0
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x34]
je 0x10030a30
cmp dword [esp + 0x48], 8
cmovae ecx, dword [esp + 0x34]
lea eax, [ecx + eax*2]
lea ecx, [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
test eax, eax
je 0x100309ee
sub eax, ecx
sar eax, 1
push dword [esp + 0x18]
lea ecx, [esp + 0x38]
push 1
push eax
call fcn.10025a20
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
lea eax, [ecx + eax*2]
lea ecx, [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
test eax, eax
jne 0x10030a26
push dword [esp + 0x1a]
jmp 0x10030a52
push dword [esp + 0x1a]
sub eax, ecx
sar eax, 1
jmp 0x10030a52
cmp dword [esp + 0x48], 8
cmovae ecx, dword [esp + 0x34]
lea eax, [ecx + eax*2]
lea ecx, [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
test eax, eax
je 0x10030a4e
sub eax, ecx
sar eax, 1
push dword [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x40]
call fcn.10025a20
cmp dword [esp + 0x60], 8
push dword [esp + 0x5c]
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
push eax
push dword [esp + 0x4c]
lea ecx, [esp + 0x40]
push 0
call fcn.1000c780
test eax, eax
js 0x10030c45
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x5c]
mov ebx, dword [ebp]
add ebx, 0x134
lea ecx, [eax*2 + 4]
mov edx, dword [ebx + 8]
mov eax, dword [ebx]
sub eax, edx
mov dword [esp + 0x14], ecx
cmp eax, ecx
jae 0x10030abf
sub edx, dword [ebx + 4]
add edx, ecx
mov ecx, ebx
call fcn.1003e2c0
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x14]
add eax, ecx
mov dword [ebx + 8], eax
cmp dword [esp + 0x60], 8
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x4c]
cmovae eax, dword [esp + 0x4c]
mov dword [esp + 0x2c], ecx
lea edx, [eax + ecx*2]
lea ecx, [esp + 0x4c]
cmovae ecx, dword [esp + 0x4c]
mov ebx, ebp
cmp ecx, edx
je 0x10030b0d
mov ax, word [ecx]
add ecx, 2
mov word [ebx], ax
lea ebx, [ebx + 2]
cmp ecx, edx
jne 0x10030af7
mov eax, dword [esp + 0x5c]
jmp 0x10030b11
mov eax, dword [esp + 0x2c]
xor ecx, ecx
mov word [ebp + eax*2], cx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x44]
lea eax, [eax*2 + 2]
add eax, ebp
cmp dword [esp + 0x48], 8
mov dword [esp + 0x2c], eax
mov ebp, dword [esp + 0x2c]
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
mov dword [esp + 0x14], ecx
lea edx, [eax + ecx*2]
lea ecx, [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
mov ebx, ebp
cmp ecx, edx
je 0x10030b6b
mov ax, word [ecx]
add ecx, 2
mov word [ebx], ax
add ebx, 2
cmp ecx, edx
jne 0x10030b55
mov eax, dword [esp + 0x44]
jmp 0x10030b6f
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov word [ebp + eax*2], cx
cmp dword [esp + 0x48], 8
jb 0x10030b89
push dword [esp + 0x34]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
cmp dword [esp + 0x60], 8
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov dword [esp + 0xb0], 0xffffffff
jb 0x10030bbe
push dword [esp + 0x4c]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebp, dword [esp + 0x28]
cmp esi, edi
jne 0x10030523
mov ebx, dword [esp + 0xb8]
mov eax, dword [ebx + 0x28]
mov esi, dword [ebx + 0x2c]
mov dword [esp + 0x28], eax
cmp eax, esi
je 0x10030d8e
xor ecx, ecx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], 0
mov word [esp + 0x7c], cx
movzx edx, word [eax + 2]
lea ecx, [eax + 2]
mov dword [esp + 0xb0], 2
test dx, dx
je 0x10030c89
mov ax, word [eax]
mov word [esp + 0x94], ax
xor eax, eax
mov word [esp + 0x98], ax
lea eax, [esp + 0x98]
push eax
mov word [esp + 0x9a], dx
lea eax, [esp + 0x98]
jmp 0x10030c8a
cmp dword [esp + 0x48], 8
jb 0x10030c58
push dword [esp + 0x34]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
cmp dword [esp + 0x60], 8
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
jb 0x10030c82
push dword [esp + 0x4c]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x10030d9c
push ecx
mov ecx, dword [ebp + 4]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.1003ba00
mov edi, eax
lea eax, [esp + 0x7c]
cmp eax, edi
je 0x10030ce1
cmp dword [esp + 0x90], 8
jb 0x10030cb8
push dword [esp + 0x7c]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
push edi
lea ecx, [esp + 0x80]
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], eax
mov word [esp + 0x80], ax
call fcn.1000a660
cmp dword [esp + 0x78], 8
jb 0x10030cf4
push dword [esp + 0x64]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x7c]
call fcn.1000a1d0
lea ecx, [esp + 0x7c]
test al, al
jne 0x10030dc6
call fcn.1000a1c0
mov ecx, dword [ebp]
lea edx, [eax*2 + 2]
add ecx, 0x134
call fcn.10032f10
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x80]
call fcn.1000abe0
mov edi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x80]
call fcn.1000abc0
push ebx
push dword [edi]
push dword [eax]
call fcn.1002c3c0
add esp, 0xc
lea ecx, [esp + 0x7c]
call fcn.1000a1c0
xor ecx, ecx
mov word [ebx + eax*2], cx
lea ecx, [esp + 0x28]
call fcn.1000a600
lea ecx, [esp + 0x7c]
mov dword [esp + 0xb0], 0xffffffff
call fcn.1000a0e0
mov eax, dword [esp + 0x28]
cmp eax, esi
jne 0x10030be3
push dword [esp + 0x30]
mov ecx, ebp
call fcn.10034470
mov dword [ebp + 8], eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.1003e328
add esp, 0xa0
ret 8
call fcn.1000a0e0
xor eax, eax
jmp 0x10030d9c