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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x96c]
test eax, eax
push esi
push edi
mov dword [esp + 0x18], ebx
jne 0x30104714
mov eax, dword [ebx + 0x24]
push 0x3029c25c
push eax
lea ecx, [esp + 0x64]
call fcn.301c7701
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
xor esi, esi
cmp eax, 5
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0xc], esi
je 0x30103fb0
push esi
lea eax, [esp + 0x38]
push eax
lea ecx, [ebx + 0x144]
call fcn.300bc2a0
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x30103fb0
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x78], 9
jne 0x30103faa
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x128]
test ch, 4
jne case.default.0x30103fe2
mov dword [esp + 0x14], esi
jmp 0x30103fba
mov ecx, dword [ebx + 0x224]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], edi
je 0x30103fd5
mov ecx, eax
call fcn.300d0470
mov edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 8]
dec eax
cmp eax, 4
ja case.default.0x30103fe2
jmp dword [eax*4 + 0x30104760]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
mov eax, dword [ebx + 0x8a0]
and esi, 0x7fffffff
test eax, eax
je 0x30104029
mov eax, dword [ebx + 0x89c]
test eax, eax
je 0x30104029
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
sub esi, dword [ebx + 0x8a0]
cmp esi, eax
jle 0x30104029
xor eax, eax
mov dword [ebx + 0x8a0], eax
mov dword [ebx + 0x89c], eax
cmp dword [ebp + 8], 1
jne 0x3010406c
test edi, edi
je 0x30104062
fild dword [ebp + 0x10]
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x18d0]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, edi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.30170550
mov dword [ebx + 0x8a0], 0
mov ecx, dword [ebx + 0x894]
test ecx, ecx
mov dword [esp + 0x14], 0
je 0x30104087
call fcn.300d0470
mov dword [esp + 0x14], eax
mov ecx, dword [ebx + 0x20]
xor eax, eax
mov dword [esp + 0x58], ecx
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], eax
call fcn.3016e590
xor esi, esi
cmp edi, esi
je 0x301040b8
lea edx, [esp + 0x4c]
push edx
mov ecx, edi
call fcn.3016f110
mov eax, dword [ebx + 0x20]
push esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x4c], eax
call fcn.3016e590
mov edi, dword [esp + 0x14]
cmp edi, esi
je 0x30104101
mov ecx, edi
call fcn.3016de90
test al, al
je 0x30104101
mov ecx, dword [ebx + 0x8a4]
call fcn.30102440
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.3016f110
jmp 0x30104159
mov eax, dword [ebx + 0x8a4]
mov edi, dword [eax + 4]
test edi, edi
je 0x30104155
mov ebx, dword [eax]
xor esi, esi
test edi, edi
jle 0x30104128
mov edx, dword [ebx + esi*4]
push edx
lea ecx, [esp + 0x40]
call fcn.3016e630
inc esi
cmp esi, edi
jl 0x30104116
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x8a4]
mov ecx, dword [edx + 4]
mov edi, dword [edx]
mov ebx, dword [esp + 0x18]
shl ecx, 2
mov esi, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov dword [edx + 4], 0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x30104217
mov edx, dword [esp + 0x40]
test edx, edx
je 0x30104211
test edx, edx
je 0x3010422c
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov esi, dword [esi + ecx*4 - 4]
mov eax, dword [eax + edx*4 - 4]
mov esi, dword [esi + 4]
cmp esi, dword [eax + 4]
jne 0x3010422c
test ecx, ecx
je 0x301041ce
lea eax, [ecx - 1]
sub ecx, eax
dec ecx
push ecx
mov ecx, dword [esp + 0x50]
push eax
push ecx
inc eax
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.30166c70
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
dec eax
mov dword [esp + 0x50], eax
mov dword [ecx + eax*4], 0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
test edx, edx
je 0x30104207
mov ecx, dword [esp + 0x3c]
lea eax, [edx - 1]
sub edx, eax
dec edx
push edx
push eax
push ecx
inc eax
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.30166c70
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x40], eax
mov dword [edx + eax*4], 0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
test ecx, ecx
jne 0x30104171
jmp 0x3010422c
lea ecx, [esp + 0x4c]
jmp 0x30104223
mov eax, dword [esp + 0x40]
test eax, eax
je 0x3010422c
lea ecx, [esp + 0x3c]
call fcn.30102470
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x3010448d
mov eax, dword [ebx + 0x894]
test eax, eax
je 0x301043ef
cmp edx, eax
je 0x30104541
test edi, edi
je 0x3010431f
fild dword [ebp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
fstp qword [esp + 0x20]
fild dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
mov esi, dword [edx + 0x18d4]
push 0
fstp qword [esp + 0x2c]
call fcn.300d0470
fld qword [esp + 0x24]
push eax
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, edi
fld qword [esp + 0x40]
fstp qword [esp]
push 0
push 1
push esi
call fcn.30170550
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
jle 0x3010431b
jmp 0x301042c0
mov edx, dword [esp + 0x14]
mov eax, dword [edx + ebx*4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x30104312
call fcn.300d0470
mov esi, eax
test esi, esi
je 0x30104312
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0xc]
mov edi, dword [eax + 0x1910]
push 0
call fcn.300d0470
fld qword [esp + 0x24]
push eax
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [esp + 0x40]
fstp qword [esp]
push 0
push 0
push edi
call fcn.30170550
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x301042c0
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x301043dc
mov ebx, dword [esp + 0x4c]
lea edi, [ecx - 1]
test edi, edi
jl 0x30104397
mov ecx, dword [ebx + edi*4]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x30104390
call fcn.300d0470
mov esi, eax
test esi, esi
je 0x30104390
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x894]
test ecx, ecx
je 0x30104360
call fcn.300d0470
jmp 0x30104362
xor eax, eax
fild dword [ebp + 0x10]
push 0
push eax
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x1914]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 0
push eax
call fcn.30170550
dec edi
jns 0x30104336
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x894]
test ecx, ecx
je 0x301043ac
call fcn.300d0470
jmp 0x301043ae
xor eax, eax
fild dword [ebp + 0x10]
mov edx, dword [esi + 0x10]
push 0
push eax
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x18d8]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.30170550
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x894], eax
jmp 0x30104541
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [ebx + 0x894], edx
je 0x30104541
mov edi, dword [esp + 0x4c]
xor esi, esi
test ecx, ecx
mov ebx, ecx
jle 0x30104457
lea ecx, [ecx]
mov edx, dword [edi + esi*4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x30104452
call fcn.300d0470
test eax, eax
je 0x30104452
fild dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x18]
mov ecx, dword [edx + 0x10]
mov edx, dword [ecx + 0x1914]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, eax
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 0
push edx
call fcn.30170550
inc esi
cmp esi, ebx
jl 0x30104410
fild dword [ebp + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + 0x18d8]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.30170550
jmp 0x30104541
mov eax, dword [ebx + 0x894]
test eax, eax
je 0x30104541
test edi, edi
je 0x30104537
fild dword [ebp + 0x10]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x18d4]
fstp qword [esp + 0x20]
fild dword [ebp + 0xc]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 0x40]
mov ecx, edi
fld qword [esp + 0x38]
fstp qword [esp + 8]
fld qword [esp + 0x40]
fstp qword [esp]
push 0
push 1
push eax
call fcn.30170550
mov esi, dword [esp + 0x40]
dec esi
mov edi, dword [esp + 0x3c]
js 0x30104537
lea ecx, [ecx]
mov ecx, dword [edi + esi*4]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x30104534
call fcn.300d0470
test eax, eax
je 0x30104534
fld qword [esp + 0x20]
mov edx, dword [eax + 0x10]
mov ecx, dword [edx + 0x18]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 0x1910]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x40]
fstp qword [esp]
push 0
push 0
push ecx
mov ecx, eax
call fcn.30170550
dec esi
jns 0x301044f0
mov dword [ebx + 0x894], 0
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x30104555
mov edx, dword [esp + 0x3c]
push edx
call fcn.302095c0
jmp 0x30104562
mov eax, dword [esp + 0x3c]
push eax
call fcn.30208320
add esp, 4
mov ecx, dword [esp + 0x58]
test ecx, ecx
mov dword [esp + 0x3c], 0
je 0x3010458e
mov edx, dword [esp + 0x4c]
push edx
call fcn.302095c0
lea ecx, [esp + 0x5c]
call fcn.301c7748
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x4c]
push eax
call fcn.30208320
add esp, 4
lea ecx, [esp + 0x5c]
call fcn.301c7748
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x898], ecx
je case.default.0x30103fe2
fild dword [ebp + 0x10]
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x18c4]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, edi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.30170550
lea ecx, [esp + 0x5c]
call fcn.301c7748
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test edi, edi
je 0x30104633
fild dword [ebp + 0x10]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x18dc]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, edi
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push eax
call fcn.30170550
test esi, esi
mov ecx, dword [esp + 0xc]
mov edi, ecx
jne 0x30104643
mov edi, dword [ebx + 0x224]
xor esi, esi
cmp edi, esi
je 0x301046f5
cmp edi, dword [ebx + 0x898]
je 0x30104674
cmp ecx, esi
je 0x301046f5
cmp ecx, dword [esp + 0x14]
jne 0x301046f5
call fcn.300d17e0
test eax, eax
je 0x301046f5
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, eax
mov eax, dword [ebx + 0x89c]
and esi, 0x7fffffff
cmp edi, eax
jne 0x3010471d
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
mov edx, dword [ebx + 0x8a0]
mov ecx, esi
sub ecx, edx
cmp ecx, eax
jge 0x30104723
mov ecx, edi
call fcn.300d0470
test eax, eax
je 0x30104723
mov ecx, edi
call fcn.300d0470
mov edx, dword [eax + 0x48]
shr edx, 6
test dl, 1
je 0x30104723
mov ecx, dword [esp + 0x10]
xor esi, esi
cmp ecx, esi
je 0x301046f5
fild dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + 0x1888]
push esi
push esi
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push esi
push 1
push edx
call fcn.30170550
mov dword [ebx + 0x8a0], esi
mov dword [ebx + 0x89c], esi
mov dword [ebx + 0x898], 0
lea ecx, [esp + 0x5c]
call fcn.301c7748
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 0x89c], edi
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov dword [ebx + 0x8a0], esi
je 0x30104701
fild dword [ebp + 0x10]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + 0x10]
mov edx, dword [eax + 0x1870]
push 0
push 0
sub esp, 0x10
fstp qword [esp + 8]
fild dword [ebp + 0xc]
fstp qword [esp]
push 0
push 1
push edx
call fcn.30170550
jmp 0x30104701