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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006bd8a
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x1008f414]
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.1002ec70
test eax, eax
jbe 0x1003112c
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100308ff
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x44], eax
jb 0x10030904
call fcn.100513de
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 0x10030a64
push 0x100748a8
push eax
call fcn.10054f19
add esp, 8
test eax, eax
je 0x10030a64
sub eax, dword [ebx]
mov esi, eax
cmp esi, 0xffffffff
je 0x10030a64
push esi
lea eax, [esp + 0x60]
push eax
mov ecx, ebx
call fcn.1000cd92
add esi, 2
push esi
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebx
mov dword [esp + 0xc8], 0
call fcn.1002f530
mov edi, dword [esp + 0x64]
cmp dword [edi - 0xc], 0
mov byte [esp + 0xc0], 1
je 0x100309e9
push 0x60
call fcn.100518c2
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xc0], 2
je 0x100309ae
mov edx, dword [esp + 0x4c]
push edx
mov ecx, eax
call fcn.10033dd0
mov esi, eax
jmp 0x100309b0
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 0x100309c4
sub eax, dword [esp + 0x14]
push eax
push edi
call fcn.10006894
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], esi
call fcn.1002fed0
mov esi, dword [esp + 0x5c]
test esi, esi
jne 0x100309f5
xor eax, eax
jmp 0x10030a0b
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10030a00
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.10006894
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 0x10030a3d
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 0x10030a64
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 0x10030a93
mov esi, dword [ebp + 8]
push esi
call fcn.100337d0
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 0x10030ad2
mov edi, dword [ebp + 8]
push edi
call fcn.100337d0
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 0x10030ac5
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x10030ac5
mov dword [edi], 0
push edi
call fcn.100504de
add esp, 4
mov dword [esp + 0x38], esi
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.10002514
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], esi
cmp dword [esi - 0xc], 0
mov dword [esp + 0xc0], 3
je 0x10031099
lea esp, [esp]
mov eax, dword [esi - 0xc]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
jne 0x10030b15
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 0x10030b4b
cmp eax, dword [esi]
jne 0x10030b4b
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x10030b81
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 0x10031189
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.100515fc
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 0x10030bf2
mov esi, dword [ebp + 8]
mov byte [esp + 0x1f], 1
lea ecx, [ecx]
lea ecx, [esp + 0x28]
push ecx
call fcn.1002f940
mov edi, dword [esp + 0x2c]
mov eax, dword [edi - 0xc]
add esp, 4
cmp eax, 0xffffffff
jne 0x10030bd0
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 0x10030bfc
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
add ecx, edx
cmp ecx, dword [esp + 0x50]
jge 0x10030bb0
cmp dword [edi - 0xc], 0
jne 0x10030dd1
mov ecx, dword [ebp + 0x10]
call fcn.1002ec70
cmp dword [esp + 0x30], eax
jne 0x10030dc7
mov esi, dword [esp + 0x18]
push esi
mov dword [esp + 0x18], esi
call fcn.100548d7
add esp, 4
cmp byte [esi], 0
mov dword [esp + 0x24], eax
je 0x10030dc7
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.1000cd92
mov eax, dword [eax]
lea esi, [eax - 0x10]
lea ebx, [edi - 0x10]
cmp esi, ebx
mov byte [esp + 0xc0], 5
je 0x10030cf6
cmp dword [ebx + 0xc], 0
jl 0x10030ce4
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x10030ce4
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x10030c8c
cmp eax, dword [esi]
jne 0x10030c8c
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x10030cc2
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 0x10031189
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.100515fc
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x10030cdb
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 0x10030cf6
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.10006894
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 0x10030d1e
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 0x10030d2d
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 0x10030d70
mov esi, dword [esp + 0x24]
push esi
mov dword [esp + 0x18], esi
call fcn.100548d7
add esp, 4
cmp byte [esi], 0
mov dword [esp + 0x24], eax
jne 0x10030c30
jmp 0x10030dc7
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x18]
je 0x10030dc7
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x30]
call fcn.1000cd92
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc4], 6
call fcn.1000cdd0
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 0x10030dc3
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 0x1003101d
mov eax, dword [edi - 0xc]
cmp eax, 0xffffffff
jne 0x10030de0
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.100518c2
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0xc0], 7
je 0x10030e44
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.10033dd0
mov esi, eax
jmp 0x10030e46
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 0x10030e60
sub eax, dword [esp + 0x24]
push eax
push edi
call fcn.10006894
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 0x10030eaf
xor edx, edx
jmp 0x10030eb7
mov edx, dword [ebx + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x10030ed4
mov ecx, dword [ebx + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x10030ed4
mov eax, dword [ebx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x10030efb
mov ecx, dword [ebx + 8]
cmp eax, ecx
mov dword [esp + 0x24], ecx
jbe 0x10030ee8
call fcn.100513de
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.1002fdc0
mov ecx, dword [esi + 0x54]
cmp dword [ecx - 0xc], 0
je 0x10030f61
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x10030f61
mov ecx, dword [ebx + 4]
test ecx, ecx
mov dword [esp + 0x24], esi
jne 0x10030f1a
xor edx, edx
jmp 0x10030f22
mov edx, dword [ebx + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x10030f3f
mov eax, dword [ebx + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x10030f3f
mov eax, dword [ebx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x10030f61
mov esi, dword [ebx + 8]
cmp ecx, esi
jbe 0x10030f4b
call fcn.100513de
lea edx, [esp + 0x24]
push edx
push esi
push ebx
lea eax, [esp + 0x80]
push eax
mov ecx, ebx
call fcn.1002fdc0
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.1002f530
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 0x10030fe0
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x10030fd2
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10030fd2
push eax
call fcn.10002514
mov dword [esp + 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x10030fc5
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 0x10030fe0
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.10006894
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 0x10031008
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 0x1003101d
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], edx
cmp byte [esp + 0x1f], 0
je 0x10031065
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov esi, dword [ebp + 0x10]
push eax
push ecx
push esi
call fcn.1002ed20
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x40]
push eax
push esi
push ecx
call fcn.100305e0
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add esp, 0x1c
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
call fcn.1002f250
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 0x10031089
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 0x10030b00
cmp byte [esp + 0x1e], 0
je 0x100310e0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov edi, dword [ebp + 0x10]
push ecx
push edx
push edi
call fcn.1002ed20
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.100305e0
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 0x10031107
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.1002ec70
cmp esi, eax
jb 0x100308e7
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.1002ed20
add esp, 0xc
cmp esi, ebx
je 0x10031153
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push esi
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp edi, ebx
je 0x10031173
mov eax, dword [edi]
cmp eax, ebx
je 0x1003116a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x1003116a
mov dword [edi], ebx
push edi
call fcn.100504de
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.10001dc3