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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30187105
mov eax, dword fs:[0]
push eax
mov eax, 0x1904
call fcn.3010f79d
push ebx
push esi
push edi
mov eax, dword [0x30024a78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x34], 0
mov byte [ebp - 0xd], 0
je 0x3007d817
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x3007d6bd
mov eax, dword [edi]
mov edx, dword [eax + 0x6c]
mov ecx, edi
call edx
test eax, eax
je 0x3007d6bd
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
mov dword [ebp - 0x24], 0xffffffff
call edx
test eax, eax
jne 0x3007d2bc
mov eax, dword [edi]
mov edx, dword [eax + 0x74]
mov ecx, edi
call edx
push eax
mov eax, dword [edi]
mov edx, dword [eax + 0x6c]
mov ecx, edi
call edx
mov ecx, eax
call fcn.300a0496
xor ecx, ecx
mov edi, eax
mov dword [ebp - 0x1c], ecx
test edi, edi
mov dword [ebp - 4], ecx
je 0x3007d6a4
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x18]
push ecx
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 0x18], ebx
call edx
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
jle 0x3007d365
mov ecx, dword [ebp - 0x1c]
lea esp, [esp]
test ecx, ecx
je 0x3007d30a
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov eax, dword [edi]
mov edx, dword [eax + 8]
push ecx
push ebx
mov ecx, edi
call edx
test eax, eax
mov ecx, dword [ebp - 0x1c]
jne 0x3007d358
test ecx, ecx
je 0x3007d358
mov ebx, ecx
call fcn.300a3c86
cmp eax, 1
jne 0x3007d342
mov ecx, ebx
call fcn.300a3ca1
cmp eax, 0x16
je 0x3007d365
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x3007d350
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov ebx, dword [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
add ebx, 1
cmp ebx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ebx
jl 0x3007d2ff
jmp 0x3007d368
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x3007d6a4
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 1
call eax
cmp eax, ebx
jl 0x3007d5b1
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x3007d5b4
cmp dword [ebp - 0x24], ebx
jl 0x3007d3ef
mov dword [ebp - 0x18], ebx
mov edx, dword [ecx]
mov eax, dword [edx + 8]
mov byte [ebp - 4], 2
call eax
cmp eax, 6
jne 0x3007d3e0
mov ecx, dword [ebp - 0x14]
call fcn.30067a15
cmp eax, dword [ebp - 0x24]
jle 0x3007d3e0
lea ecx, [ebp - 0x18]
call fcn.30077304
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x14]
mov edi, eax
call fcn.300a61f4
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
mov dword [edi], eax
call fcn.300772d5
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.3007731e
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x3007d5b4
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
cmp eax, 9
jne 0x3007d5b1
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.300772b9
mov ebx, dword [ebp - 0x20]
test ebx, ebx
mov byte [ebp - 4], 3
je 0x3007d5a5
mov ecx, dword [esi + 0x60]
test ecx, ecx
lea edi, [esi + 0x60]
je 0x3007d43c
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push ebx
call eax
test al, al
jne 0x3007d5a5
mov ecx, dword [edi]
test ecx, ecx
je 0x3007d44c
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push ebx
call eax
jmp 0x3007d45d
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, ebx
call eax
push eax
mov ecx, edi
call fcn.30077336
mov edi, dword [edi]
test edi, edi
je 0x3007d5a5
mov dword [ebp - 0x28], 0
push 0
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.300a96ce
push eax
lea ecx, [ebp - 0x28]
call fcn.30077336
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x3007d599
mov byte [esi + 0x56], 0
mov edi, dword [ebx + 0xc]
test edi, edi
mov dword [ebp - 0x18], 0
je 0x3007d4d0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test eax, eax
je 0x3007d4d0
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
mov eax, dword [eax + 8]
je 0x3007d4d0
cmp eax, 0xffffffff
je 0x3007d4d0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
test eax, eax
mov dword [esi + 0x10], ecx
jg 0x3007d4d0
cmp eax, 0xffffffff
jne 0x3007d510
lea ecx, [esi + 0x57]
push ecx
lea edx, [ebp - 0x18]
push edx
push ebx
mov ecx, esi
call fcn.30078896
test edi, edi
je 0x3007d510
push 0xc
call fcn.30147180
mov edx, dword [ebp - 0x18]
or ecx, 0xffffffff
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax], 0x300059d8
mov ecx, dword [esi + 0x10]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov ecx, dword [esi + 0x34]
test ecx, ecx
mov byte [ebp - 0xd], 1
mov dword [esi + 0x34], 0
je 0x3007d52a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp - 0x18]
push 1
push 0x3e8
push ecx
push 2
mov ecx, esi
call fcn.3007cd0e
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x3007d599
mov edx, dword [ecx]
mov eax, dword [esi + 0x58]
mov edx, dword [edx + 0xc]
push eax
call edx
mov eax, dword [esi + 0x10]
cmp eax, 0x1b
je 0x3007d574
cmp eax, 0x11
je 0x3007d574
cmp eax, 0x12
je 0x3007d574
cmp eax, 0x1a
je 0x3007d56c
cmp eax, 0x13
jne 0x3007d599
cmp dword [esi + 0x58], 2
jne 0x3007d599
jmp 0x3007d58d
mov eax, dword [esi + 0x58]
cmp eax, 2
jne 0x3007d582
cmp byte [esi + 0x57], 0
je 0x3007d58d
cmp eax, 1
jne 0x3007d599
cmp byte [esi + 0x57], 0
je 0x3007d599
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.3007731e
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.3007731e
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0x60]
test eax, eax
je 0x3007d68b
xor edi, edi
mov byte [esi + 0x56], 0
mov dword [ebp - 0x20], edi
push edi
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.300a96ce
push eax
lea ecx, [ebp - 0x20]
call fcn.30077336
mov ebx, dword [ebp - 0x20]
cmp ebx, edi
je 0x3007d62a
cmp dword [ebp - 0x14], edi
je 0x3007d62f
mov ecx, dword [esi + 0x34]
fld qword [ebx + 0x10]
cmp ecx, edi
fst qword [ebp - 0x2c]
je 0x3007d60d
mov eax, dword [ecx]
fstp st(0)
mov edx, dword [eax + 8]
call edx
test al, al
je 0x3007d60a
fld1
fsub qword [ebp - 0x2c]
jmp 0x3007d60d
fld qword [ebp - 0x2c]
mov edi, dword [esi + 0x34]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x20], eax
fimul dword [ebp - 0x20]
call fcn.3010f9f4
push eax
push 0
mov ecx, edi
call fcn.30076e07
jmp 0x3007d677
cmp dword [ebp - 0x14], edi
jne 0x3007d640
mov ecx, dword [esi + 0x60]
cmp ecx, edi
je 0x3007d63d
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x60], edi
cmp dword [esi + 0x10], edi
jne 0x3007d651
mov eax, dword [esi + 0x34]
cmp eax, edi
je 0x3007d651
mov dword [eax + 0xc], edi
jmp 0x3007d677
mov dword [esi + 0x10], edi
mov ecx, dword [esi + 0x34]
cmp ecx, edi
mov byte [ebp - 0xd], 1
mov dword [esi + 0x34], edi
je 0x3007d66a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
push 1
push edi
push edi
push 2
mov ecx, esi
call fcn.3007cd0e
test ebx, ebx
mov byte [ebp - 4], 1
je 0x3007d688
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
mov byte [ebp - 4], 0
je 0x3007d69a
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0
test ecx, ecx
mov dword [ebp - 4], 0xffffffff
je 0x3007d6b6
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x1c], 0
lea ecx, [esi + 0x14]
push ecx
lea ecx, [ebp - 0x1910]
call fcn.300857f6
mov eax, dword [ebp + 0x18]
lea edx, [ebp - 0x1910]
push edx
push eax
mov ecx, esi
mov dword [ebp - 4], 6
call fcn.30077cf2
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
push ecx
push 5
push ebx
mov dword [ebp - 0x30], 0
call dword [sym.imp.GDI32.dll_GetCurrentObject]
mov edx, dword [esi + 0xc]
push eax
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x1910]
call fcn.300858d2
lea edi, [esi + 0x24]
push edi
lea ecx, [ebp - 0x40]
push ecx
mov ecx, esi
call fcn.300781b8
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x50], edx
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], edx
push ecx
mov edx, ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
cmp dword [esi + 0x40], 0
mov edi, dword [ebp + 0x10]
mov cl, byte [esi + 0x53]
mov eax, dword [esi + 0x4c]
mov dl, byte [esi + 0x52]
mov dword [ebp - 0x6c], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x68], edi
lea edi, [ebp - 0x50]
mov dword [ebp - 0x60], edi
mov edi, dword [esi + 0x38]
mov byte [ebp - 0x57], cl
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], edi
mov byte [ebp - 0x58], dl
mov dword [ebp - 0x54], ecx
jle 0x3007d790
push eax
mov eax, dword [esi + 0x48]
push eax
push ebx
mov ecx, esi
call fcn.3007ca9b
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, edi
je 0x3007d7a9
mov edx, dword [eax]
mov edx, dword [edx + 0x3c]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call edx
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
sub dword [ebp - 0x38], eax
sub dword [ebp - 0x34], edx
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
je 0x3007d7cf
cmp ecx, edi
je 0x3007d7d3
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov ecx, dword [ebp - 0x54]
cmp ecx, edi
jne case.0x3007d7e5.2
mov eax, dword [esi + 0x10]
add eax, 0xfffffffe
cmp eax, 9
ja case.0x3007d7e5.4
movzx eax, byte [eax + 0x3007d834]
jmp dword [eax*4 + 0x3007d82c]
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1900]
push eax
call edx
lea ecx, [ebp - 0x1910]
mov dword [ebp - 4], 0xffffffff
call fcn.300858b9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14