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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006450a
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x100862c4]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [eax + 8]
xor ebx, ebx
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0xc]
xor edi, edi
xor esi, esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ebx
call fcn.1002c0a0
test eax, eax
jbe 0x1002e55c
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1002dd2f
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x44], eax
jb 0x1002dd34
call fcn.1004bc27
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x44]
mov ebx, dword [ecx + edx*4]
mov eax, dword [ebx + 8]
mov dword [esp + 0x4c], ebx
add ebx, 8
cmp dword [eax - 0xc], 0
mov byte [esp + 0x1e], 0
jl 0x1002de94
push 0x1006c5e4
push eax
call fcn.1004ef7c
add esp, 8
test eax, eax
je 0x1002de94
sub eax, dword [ebx]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002de94
push esi
lea eax, [esp + 0x60]
push eax
mov ecx, ebx
call fcn.1002443d
add esi, 2
push esi
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebx
mov dword [esp + 0xc8], 0
call fcn.1002c960
mov edi, dword [esp + 0x64]
cmp dword [edi - 0xc], 0
mov byte [esp + 0xc0], 1
je 0x1002de19
push 0x60
call fcn.1004bf12
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xc0], 2
je 0x1002ddde
mov edx, dword [esp + 0x4c]
push edx
mov ecx, eax
call fcn.10031200
mov esi, eax
jmp 0x1002dde0
xor esi, esi
mov eax, edi
lea edx, [eax + 1]
mov byte [esp + 0xc0], 1
lea ecx, [esi + 8]
mov dword [esp + 0x14], edx
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1002ddf4
sub eax, dword [esp + 0x14]
push eax
push edi
call fcn.10006b4b
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], esi
call fcn.1002d300
mov esi, dword [esp + 0x5c]
test esi, esi
jne 0x1002de25
xor eax, eax
jmp 0x1002de3b
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1002de30
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.10006b4b
lea eax, [edi - 0x10]
mov byte [esp + 0x1e], 1
mov byte [esp + 0xc0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002de6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov dword [esp + 0xc0], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002de94
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0x4c]
add ecx, 0x10
cmp dword [esp + 0x38], 0
jne 0x1002dec3
mov esi, dword [ebp + 8]
push esi
call fcn.10030c00
mov ecx, eax
mov eax, dword [esi]
mov dword [esp + 0x38], ecx
mov ecx, dword [ecx]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x54], eax
jmp 0x1002df02
mov edi, dword [ebp + 8]
push edi
call fcn.10030c00
mov esi, eax
mov edx, dword [esi]
mov eax, dword [edi]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x38]
mov eax, dword [edi]
test eax, eax
je 0x1002def5
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x1002def5
mov dword [edi], 0
push edi
call fcn.1004aa4f
add esp, 4
mov dword [esp + 0x38], esi
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.10002a16
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], esi
cmp dword [esi - 0xc], 0
mov dword [esp + 0xc0], 3
je 0x1002e4c9
lea esp, [esp]
mov eax, dword [esi - 0xc]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
jne 0x1002df45
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x3c]
push ecx
push eax
mov eax, dword [edx]
push esi
push eax
call ebx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x1002df7b
cmp eax, dword [esi]
jne 0x1002df7b
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x1002dfb1
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x1002e5b9
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.1004bc4d
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
add edx, eax
cmp edx, dword [esp + 0x50]
mov byte [esp + 0xc0], 4
mov byte [esp + 0x1f], 0
jl 0x1002e022
mov esi, dword [ebp + 8]
mov byte [esp + 0x1f], 1
lea ecx, [ecx]
lea ecx, [esp + 0x28]
push ecx
call fcn.1002cd70
mov edi, dword [esp + 0x2c]
mov eax, dword [edi - 0xc]
add esp, 4
cmp eax, 0xffffffff
jne 0x1002e000
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [esi]
push edi
push eax
call ebx
cmp dword [edi - 0xc], 0
je 0x1002e02c
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
add ecx, edx
cmp ecx, dword [esp + 0x50]
jge 0x1002dfe0
cmp dword [edi - 0xc], 0
jne 0x1002e201
mov ecx, dword [ebp + 0x10]
call fcn.1002c0a0
cmp dword [esp + 0x30], eax
jne 0x1002e1f7
mov esi, dword [esp + 0x18]
push esi
mov dword [esp + 0x18], esi
call fcn.1004ebe7
add esp, 4
cmp byte [esi], 0
mov dword [esp + 0x24], eax
je 0x1002e1f7
lea esp, [esp]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x18]
lea ecx, [esp + 0x60]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.1002443d
mov eax, dword [eax]
lea esi, [eax - 0x10]
lea ebx, [edi - 0x10]
cmp esi, ebx
mov byte [esp + 0xc0], 5
je 0x1002e126
cmp dword [ebx + 0xc], 0
jl 0x1002e114
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x1002e114
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x1002e0bc
cmp eax, dword [esi]
jne 0x1002e0bc
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x1002e0f2
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x1002e5b9
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.1004bc4d
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x1002e10b
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add edi, 0x10
mov dword [esp + 0x28], edi
jmp 0x1002e126
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.10006b4b
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0xc0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002e14e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi - 0xc]
cmp eax, 0xffffffff
jne 0x1002e15d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x3c]
push ecx
push eax
mov eax, dword [edx]
push edi
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
add ecx, edx
cmp ecx, dword [esp + 0x50]
jg 0x1002e1a0
mov esi, dword [esp + 0x24]
push esi
mov dword [esp + 0x18], esi
call fcn.1004ebe7
add esp, 4
cmp byte [esi], 0
mov dword [esp + 0x24], eax
jne 0x1002e060
jmp 0x1002e1f7
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x18]
je 0x1002e1f7
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x30]
call fcn.1002443d
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc4], 6
call fcn.1001a65e
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0xc0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002e1f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x28]
cmp dword [edi - 0xc], 0
je 0x1002e44d
mov eax, dword [edi - 0xc]
cmp eax, 0xffffffff
jne 0x1002e210
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [ebp + 8]
mov edx, dword [esi]
lea ecx, [esp + 0x3c]
push ecx
push eax
push edi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
lea ebx, [eax + ecx]
mov eax, dword [esp + 0x20]
add edx, eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x14], edx
mov edx, dword [esi]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
push 0x60
call fcn.1004bf12
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0xc0], 7
je 0x1002e274
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.10031200
mov esi, eax
jmp 0x1002e276
xor esi, esi
mov eax, edi
lea edx, [eax + 1]
mov byte [esp + 0xc0], 4
lea ecx, [esi + 8]
mov dword [esp + 0x24], edx
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1002e290
sub eax, dword [esp + 0x24]
push eax
push edi
call fcn.10006b4b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x40], edx
mov dword [esi + 0x44], ebx
mov eax, dword [esp + 0x80]
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], ecx
mov eax, dword [ebx + 4]
test eax, eax
mov dword [esp + 0x20], esi
jne 0x1002e2df
xor edx, edx
jmp 0x1002e2e7
mov edx, dword [ebx + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x1002e304
mov ecx, dword [ebx + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x1002e304
mov eax, dword [ebx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x1002e32b
mov ecx, dword [ebx + 8]
cmp eax, ecx
mov dword [esp + 0x24], ecx
jbe 0x1002e318
call fcn.1004bc27
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push ecx
push ebx
lea eax, [esp + 0x78]
push eax
mov ecx, ebx
call fcn.1002d1f0
mov ecx, dword [esi + 0x54]
cmp dword [ecx - 0xc], 0
je 0x1002e391
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x1002e391
mov ecx, dword [ebx + 4]
test ecx, ecx
mov dword [esp + 0x24], esi
jne 0x1002e34a
xor edx, edx
jmp 0x1002e352
mov edx, dword [ebx + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x1002e36f
mov eax, dword [ebx + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x1002e36f
mov eax, dword [ebx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x1002e391
mov esi, dword [ebx + 8]
cmp ecx, esi
jbe 0x1002e37b
call fcn.1004bc27
lea edx, [esp + 0x24]
push edx
push esi
push ebx
lea eax, [esp + 0x80]
push eax
mov ecx, ebx
call fcn.1002d1f0
mov eax, dword [edi - 0xc]
mov ecx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x5c]
mov dword [esp + 0x24], ecx
push edx
lea ecx, [esp + 0x20]
call fcn.1002c960
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0xc0], 8
je 0x1002e410
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x1002e402
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x1002e402
push eax
call fcn.10002a16
mov dword [esp + 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x1002e3f5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x14]
add ecx, 0x10
mov dword [esp + 0x18], ecx
jmp 0x1002e410
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.10006b4b
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0xc0], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1002e438
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x80]
cmp ecx, dword [esp + 0x2c]
jle 0x1002e44d
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], edx
cmp byte [esp + 0x1f], 0
je 0x1002e495
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov esi, dword [ebp + 0x10]
push eax
push ecx
push esi
call fcn.1002c150
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x40]
push eax
push esi
push ecx
call fcn.1002da10
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add esp, 0x1c
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
call fcn.1002c680
add dword [esp + 0x34], 1
add edi, 0xfffffff0
mov byte [esp + 0xc0], 3
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002e4b9
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
mov esi, eax
jne 0x1002df30
cmp byte [esp + 0x1e], 0
je 0x1002e510
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov edi, dword [ebp + 0x10]
push ecx
push edx
push edi
call fcn.1002c150
mov edx, dword [ebp + 8]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x40]
push ecx
push edi
push edx
mov dword [esp + 0x48], 0
call fcn.1002da10
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
add esp, 0x1c
add dword [esp + 0x34], 1
mov dword [esp + 0x20], ecx
add esi, 0xfffffff0
mov dword [esp + 0xc0], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x1002e537
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov esi, dword [esp + 0x44]
mov ecx, dword [ebp + 0xc]
add esi, 1
mov dword [esp + 0x44], esi
call fcn.1002c0a0
cmp esi, eax
jb 0x1002dd17
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x54]
xor ebx, ebx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x10]
push ecx
push edx
push eax
call fcn.1002c150
add esp, 0xc
cmp esi, ebx
je 0x1002e583
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push esi
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp edi, ebx
je 0x1002e5a3
mov eax, dword [edi]
cmp eax, ebx
je 0x1002e59a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x1002e59a
mov dword [edi], ebx
push edi
call fcn.1004aa4f
add esp, 4
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.10002493