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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006a77a
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x1008d414]
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.1002e1a0
test eax, eax
jbe 0x1003065c
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1002fe2f
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x44], eax
jb 0x1002fe34
call fcn.1004ff43
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 0x1002ff94
push 0x10072808
push eax
call fcn.10053954
add esp, 8
test eax, eax
je 0x1002ff94
sub eax, dword [ebx]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002ff94
push esi
lea eax, [esp + 0x60]
push eax
mov ecx, ebx
call fcn.10025d30
add esi, 2
push esi
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebx
mov dword [esp + 0xc8], 0
call fcn.1002ea60
mov edi, dword [esp + 0x64]
cmp dword [edi - 0xc], 0
mov byte [esp + 0xc0], 1
je 0x1002ff19
push 0x60
call fcn.10050422
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xc0], 2
je 0x1002fede
mov edx, dword [esp + 0x4c]
push edx
mov ecx, eax
call fcn.10033300
mov esi, eax
jmp 0x1002fee0
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 0x1002fef4
sub eax, dword [esp + 0x14]
push eax
push edi
call fcn.10006a0f
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], esi
call fcn.1002f400
mov esi, dword [esp + 0x5c]
test esi, esi
jne 0x1002ff25
xor eax, eax
jmp 0x1002ff3b
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1002ff30
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.10006a0f
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 0x1002ff6d
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 0x1002ff94
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 0x1002ffc3
mov esi, dword [ebp + 8]
push esi
call fcn.10032d00
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 0x10030002
mov edi, dword [ebp + 8]
push edi
call fcn.10032d00
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 0x1002fff5
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x1002fff5
mov dword [edi], 0
push edi
call fcn.1004efee
add esp, 4
mov dword [esp + 0x38], esi
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.10002541
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], esi
cmp dword [esi - 0xc], 0
mov dword [esp + 0xc0], 3
je 0x100305c9
lea esp, [esp]
mov eax, dword [esi - 0xc]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
jne 0x10030045
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 0x1003007b
cmp eax, dword [esi]
jne 0x1003007b
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x100300b1
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 0x100306b9
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.1005015c
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 0x10030122
mov esi, dword [ebp + 8]
mov byte [esp + 0x1f], 1
lea ecx, [ecx]
lea ecx, [esp + 0x28]
push ecx
call fcn.1002ee70
mov edi, dword [esp + 0x2c]
mov eax, dword [edi - 0xc]
add esp, 4
cmp eax, 0xffffffff
jne 0x10030100
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 0x1003012c
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
add ecx, edx
cmp ecx, dword [esp + 0x50]
jge 0x100300e0
cmp dword [edi - 0xc], 0
jne 0x10030301
mov ecx, dword [ebp + 0x10]
call fcn.1002e1a0
cmp dword [esp + 0x30], eax
jne 0x100302f7
mov esi, dword [esp + 0x18]
push esi
mov dword [esp + 0x18], esi
call fcn.10053367
add esp, 4
cmp byte [esi], 0
mov dword [esp + 0x24], eax
je 0x100302f7
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.10025d30
mov eax, dword [eax]
lea esi, [eax - 0x10]
lea ebx, [edi - 0x10]
cmp esi, ebx
mov byte [esp + 0xc0], 5
je 0x10030226
cmp dword [ebx + 0xc], 0
jl 0x10030214
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x10030214
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x100301bc
cmp eax, dword [esi]
jne 0x100301bc
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x100301f2
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 0x100306b9
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.1005015c
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x1003020b
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 0x10030226
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.10006a0f
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 0x1003024e
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 0x1003025d
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 0x100302a0
mov esi, dword [esp + 0x24]
push esi
mov dword [esp + 0x18], esi
call fcn.10053367
add esp, 4
cmp byte [esi], 0
mov dword [esp + 0x24], eax
jne 0x10030160
jmp 0x100302f7
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x18]
je 0x100302f7
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x30]
call fcn.10025d30
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc4], 6
call fcn.1001af82
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 0x100302f3
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 0x1003054d
mov eax, dword [edi - 0xc]
cmp eax, 0xffffffff
jne 0x10030310
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.10050422
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0xc0], 7
je 0x10030374
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.10033300
mov esi, eax
jmp 0x10030376
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 0x10030390
sub eax, dword [esp + 0x24]
push eax
push edi
call fcn.10006a0f
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 0x100303df
xor edx, edx
jmp 0x100303e7
mov edx, dword [ebx + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x10030404
mov ecx, dword [ebx + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x10030404
mov eax, dword [ebx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x1003042b
mov ecx, dword [ebx + 8]
cmp eax, ecx
mov dword [esp + 0x24], ecx
jbe 0x10030418
call fcn.1004ff43
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.1002f2f0
mov ecx, dword [esi + 0x54]
cmp dword [ecx - 0xc], 0
je 0x10030491
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x10030491
mov ecx, dword [ebx + 4]
test ecx, ecx
mov dword [esp + 0x24], esi
jne 0x1003044a
xor edx, edx
jmp 0x10030452
mov edx, dword [ebx + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x1003046f
mov eax, dword [ebx + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x1003046f
mov eax, dword [ebx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x10030491
mov esi, dword [ebx + 8]
cmp ecx, esi
jbe 0x1003047b
call fcn.1004ff43
lea edx, [esp + 0x24]
push edx
push esi
push ebx
lea eax, [esp + 0x80]
push eax
mov ecx, ebx
call fcn.1002f2f0
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.1002ea60
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 0x10030510
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x10030502
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10030502
push eax
call fcn.10002541
mov dword [esp + 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x100304f5
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 0x10030510
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.10006a0f
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 0x10030538
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 0x1003054d
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], edx
cmp byte [esp + 0x1f], 0
je 0x10030595
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov esi, dword [ebp + 0x10]
push eax
push ecx
push esi
call fcn.1002e250
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x40]
push eax
push esi
push ecx
call fcn.1002fb10
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add esp, 0x1c
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
call fcn.1002e780
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 0x100305b9
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 0x10030030
cmp byte [esp + 0x1e], 0
je 0x10030610
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov edi, dword [ebp + 0x10]
push ecx
push edx
push edi
call fcn.1002e250
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.1002fb10
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 0x10030637
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.1002e1a0
cmp esi, eax
jb 0x1002fe17
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.1002e250
add esp, 0xc
cmp esi, ebx
je 0x10030683
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push esi
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp edi, ebx
je 0x100306a3
mov eax, dword [edi]
cmp eax, ebx
je 0x1003069a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x1003069a
mov dword [edi], ebx
push edi
call fcn.1004efee
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.10001e73