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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006c8ba
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x1009140c]
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.1002eee0
test eax, eax
jbe 0x1003139c
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10030b6f
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x44], eax
jb 0x10030b74
call fcn.10051df3
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 0x10030cd4
push 0x100758d4
push eax
call fcn.100558d4
add esp, 8
test eax, eax
je 0x10030cd4
sub eax, dword [ebx]
mov esi, eax
cmp esi, 0xffffffff
je 0x10030cd4
push esi
lea eax, [esp + 0x60]
push eax
mov ecx, ebx
call fcn.1000d042
add esi, 2
push esi
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebx
mov dword [esp + 0xc8], 0
call fcn.1002f7a0
mov edi, dword [esp + 0x64]
cmp dword [edi - 0xc], 0
mov byte [esp + 0xc0], 1
je 0x10030c59
push 0x60
call fcn.100522d2
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xc0], 2
je 0x10030c1e
mov edx, dword [esp + 0x4c]
push edx
mov ecx, eax
call fcn.10034040
mov esi, eax
jmp 0x10030c20
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 0x10030c34
sub eax, dword [esp + 0x14]
push eax
push edi
call fcn.10006a73
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], esi
call fcn.10030140
mov esi, dword [esp + 0x5c]
test esi, esi
jne 0x10030c65
xor eax, eax
jmp 0x10030c7b
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10030c70
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.10006a73
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 0x10030cad
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 0x10030cd4
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 0x10030d03
mov esi, dword [ebp + 8]
push esi
call fcn.10033a40
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 0x10030d42
mov edi, dword [ebp + 8]
push edi
call fcn.10033a40
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 0x10030d35
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x10030d35
mov dword [edi], 0
push edi
call fcn.10050e9e
add esp, 4
mov dword [esp + 0x38], esi
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.1000257a
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], esi
cmp dword [esi - 0xc], 0
mov dword [esp + 0xc0], 3
je 0x10031309
lea esp, [esp]
mov eax, dword [esi - 0xc]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
jne 0x10030d85
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 0x10030dbb
cmp eax, dword [esi]
jne 0x10030dbb
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x10030df1
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 0x100313f9
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.1005200c
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 0x10030e62
mov esi, dword [ebp + 8]
mov byte [esp + 0x1f], 1
lea ecx, [ecx]
lea ecx, [esp + 0x28]
push ecx
call fcn.1002fbb0
mov edi, dword [esp + 0x2c]
mov eax, dword [edi - 0xc]
add esp, 4
cmp eax, 0xffffffff
jne 0x10030e40
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 0x10030e6c
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
add ecx, edx
cmp ecx, dword [esp + 0x50]
jge 0x10030e20
cmp dword [edi - 0xc], 0
jne 0x10031041
mov ecx, dword [ebp + 0x10]
call fcn.1002eee0
cmp dword [esp + 0x30], eax
jne 0x10031037
mov esi, dword [esp + 0x18]
push esi
mov dword [esp + 0x18], esi
call fcn.100552e7
add esp, 4
cmp byte [esi], 0
mov dword [esp + 0x24], eax
je 0x10031037
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.1000d042
mov eax, dword [eax]
lea esi, [eax - 0x10]
lea ebx, [edi - 0x10]
cmp esi, ebx
mov byte [esp + 0xc0], 5
je 0x10030f66
cmp dword [ebx + 0xc], 0
jl 0x10030f54
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x10030f54
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x10030efc
cmp eax, dword [esi]
jne 0x10030efc
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x10030f32
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 0x100313f9
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.1005200c
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x10030f4b
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 0x10030f66
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.10006a73
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 0x10030f8e
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 0x10030f9d
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 0x10030fe0
mov esi, dword [esp + 0x24]
push esi
mov dword [esp + 0x18], esi
call fcn.100552e7
add esp, 4
cmp byte [esi], 0
mov dword [esp + 0x24], eax
jne 0x10030ea0
jmp 0x10031037
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x18]
je 0x10031037
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x30]
call fcn.1000d042
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc4], 6
call fcn.1000d080
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 0x10031033
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 0x1003128d
mov eax, dword [edi - 0xc]
cmp eax, 0xffffffff
jne 0x10031050
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.100522d2
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0xc0], 7
je 0x100310b4
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.10034040
mov esi, eax
jmp 0x100310b6
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 0x100310d0
sub eax, dword [esp + 0x24]
push eax
push edi
call fcn.10006a73
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 0x1003111f
xor edx, edx
jmp 0x10031127
mov edx, dword [ebx + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x10031144
mov ecx, dword [ebx + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x10031144
mov eax, dword [ebx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x1003116b
mov ecx, dword [ebx + 8]
cmp eax, ecx
mov dword [esp + 0x24], ecx
jbe 0x10031158
call fcn.10051df3
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.10030030
mov ecx, dword [esi + 0x54]
cmp dword [ecx - 0xc], 0
je 0x100311d1
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x100311d1
mov ecx, dword [ebx + 4]
test ecx, ecx
mov dword [esp + 0x24], esi
jne 0x1003118a
xor edx, edx
jmp 0x10031192
mov edx, dword [ebx + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x100311af
mov eax, dword [ebx + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x100311af
mov eax, dword [ebx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x100311d1
mov esi, dword [ebx + 8]
cmp ecx, esi
jbe 0x100311bb
call fcn.10051df3
lea edx, [esp + 0x24]
push edx
push esi
push ebx
lea eax, [esp + 0x80]
push eax
mov ecx, ebx
call fcn.10030030
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.1002f7a0
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 0x10031250
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x10031242
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10031242
push eax
call fcn.1000257a
mov dword [esp + 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x10031235
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 0x10031250
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.10006a73
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 0x10031278
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 0x1003128d
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], edx
cmp byte [esp + 0x1f], 0
je 0x100312d5
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov esi, dword [ebp + 0x10]
push eax
push ecx
push esi
call fcn.1002ef90
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x40]
push eax
push esi
push ecx
call fcn.10030850
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add esp, 0x1c
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
call fcn.1002f4c0
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 0x100312f9
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 0x10030d70
cmp byte [esp + 0x1e], 0
je 0x10031350
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov edi, dword [ebp + 0x10]
push ecx
push edx
push edi
call fcn.1002ef90
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.10030850
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 0x10031377
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.1002eee0
cmp esi, eax
jb 0x10030b57
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.1002ef90
add esp, 0xc
cmp esi, ebx
je 0x100313c3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push esi
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp edi, ebx
je 0x100313e3
mov eax, dword [edi]
cmp eax, ebx
je 0x100313da
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x100313da
mov dword [edi], ebx
push edi
call fcn.10050e9e
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.10001e97