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

Disassembly:
push ebp
lea ebp, [esp - 0x14c]
sub esp, 0x14c
push 0xffffffffffffffff
push 0x10044de0
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x1005ae50]
xor eax, ebp
mov dword [ebp + 0x148], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x16c]
mov esi, dword [ebp + 0x164]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x174]
mov edx, dword [ebp + 0x158]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x178]
mov ebx, ecx
mov ecx, dword [ebp + 0x170]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x17c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x188]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x154]
mov dword [ebx + 0x620], eax
mov dword [ebx + 0x14], eax
movsx ecx, byte [ecx]
mov eax, dword [ebx + 8]
mov dword [ebx + 0x10], ecx
lea edi, [ebx + 0x110]
mov ecx, 0xf0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x160]
lea edi, [ebx + 0x84]
mov ecx, 0x23
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x170]
push edx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x24], edx
call fcn.10007500
mov ecx, dword [ebp - 0x48]
push 0xa
push 0xa
push 0
push 0
mov dword [ecx], 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ecx, dword [ebx + 8]
lea edx, [ebp]
push edx
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x15], 0
call fcn.100038d0
xor eax, eax
lea edi, [ebx + 0x4d4]
mov ecx, 0x52
lea esi, [ebp]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x4c]
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x10013dcd
push eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.GDI32.dll_GetClipRgn]
cmp eax, 1
jne 0x10013dcd
mov byte [ebp - 0x15], al
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebx + 0x620]
mov dword [ebp - 0x14], esi
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x170]
push ecx
push edx
mov ecx, eax
call fcn.10007790
cmp eax, esi
je 0x10013e0a
push 0x1004e9b0
lea edx, [ebp - 0x90]
push edx
mov dword [ebp - 0x90], eax
call fcn.100317ab
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x168]
mov eax, dword [eax]
cmp edi, eax
mov dword [ebp - 0x20], edi
jle 0x10013e21
mov edi, eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x50]
cmp dword [ecx], esi
jne 0x10014292
mov edx, dword [ebx + 8]
push edx
mov ecx, ebx
call fcn.10013b00
cmp eax, esi
je 0x10013e4c
mov dword [ebp - 0x5c], eax
push 0x1004e9b0
lea eax, [ebp - 0x5c]
push eax
call fcn.100317ab
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
push ecx
push esi
lea edx, [ebx + 0x34]
push edx
mov ecx, ebx
call fcn.10012c10
mov eax, dword [ebp - 0x14]
push eax
push esi
lea ecx, [ebx + 0x35]
push ecx
mov ecx, ebx
call fcn.10012c40
mov eax, dword [ebp + 0x190]
cmp eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x4d0]
jne 0x10013eac
mov eax, dword [ebx + 0x620]
push edx
push edi
push eax
call fcn.10016070
test eax, eax
je 0x10013ed6
push 0x1004e9b0
lea ecx, [ebp - 0x94]
push ecx
mov dword [ebp - 0x94], eax
call fcn.100317ab
push eax
mov eax, dword [ebx + 0x620]
push edx
push edi
push eax
call fcn.10015660
test eax, eax
je 0x10013ed6
push 0x1004e9b0
lea ecx, [ebp - 0xac]
push ecx
mov dword [ebp - 0xac], eax
call fcn.100317ab
mov ecx, dword [ebx + 0x4d0]
call fcn.10015290
fld1
mov edx, dword [ebp - 0x14]
fst qword [ebx + 0x20]
mov byte [ebx + 0x18], al
fstp qword [ebx + 0x28]
lea ecx, [ebp]
mov byte [ebx + 0x40], 0
push eax
mov eax, dword [ebp + 0x15c]
push edx
push eax
push ecx
push esi
mov ecx, ebx
call fcn.10012ac0
test al, al
mov edi, dword [ebp + 0x164]
je 0x10013f2f
mov edx, dword [ebp + 4]
mov byte [ebx + 0x40], 1
cmp edx, dword [edi + 0x18]
jge 0x10013f2f
fild dword [ebp + 4]
fild dword [edi + 0x18]
fdivr st(1)
fstp qword [ebx + 0x20]
fidivr dword [edi + 0x18]
fstp qword [ebx + 0x28]
cmp byte [esi], 1
jne 0x100140ed
cmp dword [esi + 4], 0
jne 0x10013f5a
cmp dword [esi + 8], 0
jne 0x10013f5a
cmp dword [esi + 0xc], 0
jne 0x10013f5a
cmp dword [esi + 0x10], 0
jne 0x10013f5a
push 0x3ee4
call fcn.100301f0
cmp byte [ebp + 0x15c], 0
mov eax, dword [ebp - 0x14]
je 0x10014080
cmp byte [eax + 0x23], 0
jne 0x10013f91
cmp dword [eax + 0x10], 0
jg 0x10013f91
add eax, 0xc9a8
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10013f80
sub eax, edx
je 0x1001403e
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
lea ecx, [ebx + 0x30]
push ecx
mov ecx, ebx
call fcn.10012b70
cmp dword [ebp + 0x184], 0
je 0x10013fdd
mov edx, dword [ebp + 0x184]
push edx
call fcn.100010f0
add esp, 4
test al, al
jne 0x10013fdd
mov eax, dword [ebp + 0x184]
mov ecx, dword [eax]
mov dword [ebx + 0x44], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x48], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x4c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x50], edx
jmp 0x10013ff7
xor eax, eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
mov eax, dword [edi + 0x10]
sub eax, 1
mov dword [ebx + 0x4c], eax
mov ecx, dword [edi + 0xc]
sub ecx, 1
mov dword [ebx + 0x50], ecx
lea eax, [ebx + 0x10]
push eax
mov ecx, ebx
call fcn.10012cf0
mov edx, dword [edi + 0x24]
push 0
push 0
mov dword [ebx + 0x38], edx
mov eax, dword [edi + 0x28]
push 0
lea edx, [ebx + 0x10]
push edx
mov edx, dword [ebx + 0x620]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0x170]
push 0
push edx
push ecx
mov ecx, eax
call fcn.10007940
push eax
call fcn.100010b0
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
push esi
lea ecx, [ebx + 0x30]
push ecx
mov ecx, ebx
call fcn.10012b40
mov edx, dword [esi + 4]
mov dword [ebx + 0x44], edx
mov eax, dword [esi + 8]
mov dword [ebx + 0x48], eax
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0x4c], ecx
mov edx, dword [esi + 0x10]
lea eax, [ebx + 0x10]
push eax
mov ecx, ebx
mov dword [ebx + 0x50], edx
call fcn.10012cf0
cmp dword [edi + 0x34], 0
setne al
mov byte [ebx + 0x19], al
jmp 0x10014173
cmp byte [eax + 0x23], 0
jne 0x10013f50
cmp dword [eax + 0x10], 0
jg 0x10013f50
add eax, 0xc9a8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100140a0
sub eax, edx
jne 0x10013f50
mov ecx, dword [ebp - 0x14]
push ecx
push esi
lea edx, [ebx + 0x30]
push edx
mov ecx, ebx
call fcn.10012b40
mov eax, dword [esi + 4]
mov dword [ebx + 0x44], eax
mov ecx, dword [esi + 8]
mov dword [ebx + 0x48], ecx
mov edx, dword [esi + 0xc]
mov dword [ebx + 0x4c], edx
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x50], eax
lea eax, [ebx + 0x10]
push eax
mov ecx, ebx
call fcn.10012cf0
mov byte [ebx + 0x19], 0
jmp 0x10014173
cmp byte [ebp + 0x15c], 0
je 0x10013f50
mov ecx, dword [ebp - 0x14]
push ecx
push esi
push edi
lea edx, [ebx + 0x30]
push edx
mov ecx, ebx
call fcn.10012b70
mov eax, dword [esi + 4]
mov dword [ebx + 0x44], eax
mov ecx, dword [esi + 8]
mov dword [ebx + 0x48], ecx
mov edx, dword [esi + 0xc]
mov dword [ebx + 0x4c], edx
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x50], eax
cmp dword [ebx + 0x44], 0
jne 0x10014152
xor eax, eax
cmp dword [ebx + 0x48], eax
jne 0x10014152
cmp dword [ebx + 0x4c], eax
jne 0x10014152
cmp dword [ebx + 0x50], eax
jne 0x10014152
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
mov ecx, dword [edi + 0x10]
sub ecx, 1
mov dword [ebx + 0x4c], ecx
mov edx, dword [edi + 0xc]
sub edx, 1
mov dword [ebx + 0x50], edx
lea eax, [ebx + 0x10]
push eax
mov ecx, ebx
call fcn.10012cf0
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x38], eax
mov ecx, dword [edi + 0x28]
mov dword [ebx + 0x3c], ecx
cmp dword [edi + 0x34], 0
setne dl
mov byte [ebx + 0x19], dl
mov eax, dword [ebp + 0x180]
push eax
push esi
lea edi, [ebx + 0x10]
push edi
mov ecx, ebx
call fcn.10013240
test eax, eax
je 0x100141a1
push 0x1004e9b0
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], eax
call fcn.100317ab
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
push edx
push eax
mov ecx, ebx
call fcn.10013bb0
test eax, eax
je 0x100141cb
push 0x1004e9b0
lea ecx, [ebp - 0x88]
push ecx
mov dword [ebp - 0x88], eax
call fcn.100317ab
mov ecx, dword [ebx + 0x624]
mov eax, dword [ebx + 8]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x170]
push 1
push ecx
mov ecx, dword [ebp - 0x20]
push ecx
movsx ecx, byte [esi]
push edi
push ecx
mov ecx, dword [ebx + 0x620]
push ecx
push edx
mov ecx, eax
call fcn.10007940
test eax, eax
je 0x1001420d
push 0x1004e9b0
lea edx, [ebp - 0x60]
push edx
mov dword [ebp - 0x60], eax
call fcn.100317ab
mov eax, dword [ebx + 8]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x170]
push edi
lea ecx, [ebx + 0x54]
push ecx
movsx ecx, byte [esi]
push ecx
mov ecx, dword [ebx + 0x620]
push ecx
push edx
mov ecx, eax
call fcn.1000a380
test eax, eax
je 0x1001424c
push 0x1004e9b0
lea edx, [ebp - 0xa4]
push edx
mov dword [ebp - 0xa4], eax
call fcn.100317ab
cmp dword [ebx + 0x620], 0
jne 0x10014277
mov ecx, dword [ebx + 0x4d0]
push 0
call fcn.100151f0
test eax, eax
je 0x10014277
mov dword [ebp - 0x68], eax
push 0x1004e9b0
lea eax, [ebp - 0x68]
push eax
call fcn.100317ab
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x620]
mov ecx, dword [ecx + 0x170]
push edi
push edx
call fcn.10007510
jmp 0x10014438
mov esi, dword [ebp - 0x28]
mov eax, dword [ebx + 8]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x170]
lea ecx, [ebp - 0x144]
push ecx
movsx ecx, byte [esi]
push ecx
mov ecx, dword [ebx + 0x620]
push ecx
push edx
mov ecx, eax
call fcn.10007be0
test eax, eax
je 0x100142d0
push 0x1004e9b0
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x54], eax
call fcn.100317ab
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x170]
mov eax, dword [ebx + 0x620]
lea edx, [ebp - 0x144]
push edx
push eax
call fcn.10007cd0
test eax, eax
je 0x10014301
push 0x1004e9b0
lea ecx, [ebp - 0x70]
push ecx
mov dword [ebp - 0x70], eax
call fcn.100317ab
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x140]
sub edx, dword [ebx + 0x628]
sub eax, dword [ebx + 0x62c]
cmp byte [ebx + 0x40], 0
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
je 0x1001439f
fild dword [ebp - 0x34]
sub esp, 8
fmul qword [ebx + 0x20]
fstp qword [esp]
call fcn.10032aa0
call fcn.10031f80
fild dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
fmul qword [ebx + 0x20]
fstp qword [esp]
call fcn.10032aa0
add esp, 8
call fcn.10031f80
mov ecx, dword [ebx + 0x624]
push 0
push ecx
push edi
lea ecx, [ebx + 0x10]
push ecx
movsx ecx, byte [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 8]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x170]
push ecx
mov ecx, dword [ebx + 0x620]
push ecx
push edx
mov ecx, eax
call fcn.10007940
test eax, eax
je 0x1001439f
push 0x1004e9b0
lea edx, [ebp - 0xa8]
push edx
mov dword [ebp - 0xa8], eax
call fcn.100317ab
mov eax, dword [ebx + 0x50]
sub eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x4c]
sub ecx, dword [ebx + 0x44]
add eax, 1
add ecx, 1
push eax
push ecx
mov ecx, ebx
call fcn.100131d0
test al, al
jne 0x10014438
mov edi, dword [ebp + 0x180]
test edi, edi
je 0x10014438
cmp dword [esi + 0x2c], 0
jne 0x10014438
cmp dword [esi + 0x30], 0
jne 0x10014438
cmp dword [esi + 0x34], 0
jne 0x10014438
cmp dword [esi + 0x38], 0
jne 0x10014438
lea edx, [esi + 0x44]
push edx
call fcn.100010f0
add esp, 4
test al, al
je 0x10014438
cmp edi, 0x7fff
jle 0x10014402
push 0x4a3a
call fcn.100301f0
fld qword [ebx + 0x20]
mov eax, dword [ebx + 0x68]
fmul qword [0x10047600]
add eax, 0x7ffe
sub esp, 8
mov dword [ebx + 0x70], eax
fstp qword [esp]
call fcn.10032aa0
fsub qword [0x100475b8]
add esp, 8
call fcn.10031f80
add eax, dword [ebx + 0x78]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebx + 0x64]
push ecx
push eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
call fcn.1002a220
add esp, 8
test eax, eax
je 0x10014469
push 0x1004e9b0
lea edx, [ebp - 0x78]
push edx
mov dword [ebp - 0x78], eax
call fcn.100317ab
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea edi, [ebx + 0x10]
push edi
call edx
cmp byte [esi], 1
jne 0x100144a4
mov eax, dword [ebp - 0x24]
push edi
push esi
push eax
mov ecx, ebx
call fcn.10012d90
test eax, eax
je 0x100144a4
push 0x1004e9b0
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], eax
call fcn.100317ab
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
push edi
push esi
push edx
push eax
mov ecx, ebx
call fcn.10013580
test eax, eax
je 0x100144ca
push 0x1004e9b0
lea ecx, [ebp - 0x80]
push ecx
mov dword [ebp - 0x80], eax
call fcn.100317ab
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov al, byte [esi]
test al, al
jne 0x100144e3
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x44], edx
jmp 0x100144e9
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x44], ecx
test al, al
jne 0x100144fe
cmp byte [ebp + 0x28], al
je 0x100144fe
cmp byte [ebx + 0x40], al
jne 0x100144fe
mov dword [ebp - 0x44], 0
cmp dword [ebp + 0x180], 0
jne 0x10014515
mov edx, dword [ebx + 0x60]
sub edx, dword [ebx + 0x58]
add edx, 1
mov dword [ebp - 0x40], edx
jmp 0x10014534
fild dword [ebp + 0x180]
sub esp, 8
fmul qword [ebx + 0x20]
fstp qword [esp]
call fcn.10032aa0
add esp, 8
call fcn.10031f80
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x9c]
push edx
mov edx, dword [ebp - 0x58]
push edx
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x2c]
push edx
xor eax, eax
lea edx, [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x38]
cmp byte [edx], 0
mov dword [ebp - 0x3c], eax
setne dl
add dl, 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
mov eax, dword [eax]
push edx
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0xb4]
push edx
mov edx, dword [ebx + 0x624]
push edx
mov edx, dword [ebp - 0x1c]
push edx
mov edx, dword [ebp - 0x20]
push edx
call eax
mov edi, eax
cmp edi, 1
je 0x100145a2
test edi, edi
je 0x100145a2
push 0x1004e9b0
lea ecx, [ebp - 0x64]
push ecx
mov dword [ebp - 0x64], edi
call fcn.100317ab
fild dword [ebp - 0x28]
sub esp, 8
fmul qword [ebx + 0x28]
fstp qword [esp]
call fcn.10032aa0
add esp, 8
call fcn.10031f80
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x38]
mov dword [edx], eax
cmp edi, 1
sete al
mov byte [ecx], al
cmp byte [ebx + 0x40], 0
mov dword [ebp - 0x1c], 0
je 0x10014653
mov edx, dword [ebx + 8]
mov ecx, dword [edx + 0x170]
mov edx, dword [ebx + 0x620]
lea eax, [ebp - 0x144]
push eax
push edx
call fcn.10007c90
test eax, eax
je 0x10014609
mov dword [ebp - 0x6c], eax
push 0x1004e9b0
lea eax, [ebp - 0x6c]
push eax
call fcn.100317ab
mov ecx, dword [ebx + 0x624]
mov eax, dword [ebx + 8]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x170]
push ecx
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x144]
push ecx
movsx ecx, byte [esi]
push ecx
mov ecx, dword [ebx + 0x620]
push ecx
push edx
mov ecx, eax
call fcn.10007b40
test eax, eax
je 0x10014653
push 0x1004e9b0
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x74], eax
call fcn.100317ab
mov eax, dword [ebx + 8]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x170]
lea ecx, [ebx + 0x628]
push ecx
movsx ecx, byte [esi]
push ecx
mov ecx, dword [ebx + 0x620]
push ecx
push edx
mov ecx, eax
call fcn.10007be0
test eax, eax
je 0x1001468e
push 0x1004e9b0
lea edx, [ebp - 0x7c]
push edx
mov dword [ebp - 0x7c], eax
call fcn.100317ab
mov eax, dword [ebp - 0x38]
cmp byte [eax], 0
jne 0x1001469d
mov ecx, ebx
call fcn.10013040
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
jmp 0x100146de
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x10014719
cmp byte [ebp - 0x15], 0
je 0x10014706
mov ecx, dword [ebp - 0x24]
push esi
push ecx
jmp 0x1001470c
mov edx, dword [ebp - 0x24]
push 0
push edx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x148]
xor ecx, ebp
call fcn.10031d05
add ebp, 0x14c
mov esp, ebp
pop ebp
ret 0x40