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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006c96a
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.1002eed0
test eax, eax
jbe 0x1003138c
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10030b5f
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x44], eax
jb 0x10030b64
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 0x10030cc4
push 0x100758d4
push eax
call fcn.100558d4
add esp, 8
test eax, eax
je 0x10030cc4
sub eax, dword [ebx]
mov esi, eax
cmp esi, 0xffffffff
je 0x10030cc4
push esi
lea eax, [esp + 0x60]
push eax
mov ecx, ebx
call fcn.1000d262
add esi, 2
push esi
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebx
mov dword [esp + 0xc8], 0
call fcn.1002f790
mov edi, dword [esp + 0x64]
cmp dword [edi - 0xc], 0
mov byte [esp + 0xc0], 1
je 0x10030c49
push 0x60
call fcn.100522d2
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0xc0], 2
je 0x10030c0e
mov edx, dword [esp + 0x4c]
push edx
mov ecx, eax
call fcn.10034030
mov esi, eax
jmp 0x10030c10
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 0x10030c24
sub eax, dword [esp + 0x14]
push eax
push edi
call fcn.10006b67
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], esi
call fcn.10030130
mov esi, dword [esp + 0x5c]
test esi, esi
jne 0x10030c55
xor eax, eax
jmp 0x10030c6b
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10030c60
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.10006b67
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 0x10030c9d
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 0x10030cc4
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 0x10030cf3
mov esi, dword [ebp + 8]
push esi
call fcn.10033a30
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 0x10030d32
mov edi, dword [ebp + 8]
push edi
call fcn.10033a30
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 0x10030d25
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x10030d25
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.1000252a
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x18], esi
cmp dword [esi - 0xc], 0
mov dword [esp + 0xc0], 3
je 0x100312f9
lea esp, [esp]
mov eax, dword [esi - 0xc]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
jne 0x10030d75
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 0x10030dab
cmp eax, dword [esi]
jne 0x10030dab
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x10030de1
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 0x100313e9
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 0x10030e52
mov esi, dword [ebp + 8]
mov byte [esp + 0x1f], 1
lea ecx, [ecx]
lea ecx, [esp + 0x28]
push ecx
call fcn.1002fba0
mov edi, dword [esp + 0x2c]
mov eax, dword [edi - 0xc]
add esp, 4
cmp eax, 0xffffffff
jne 0x10030e30
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 0x10030e5c
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
add ecx, edx
cmp ecx, dword [esp + 0x50]
jge 0x10030e10
cmp dword [edi - 0xc], 0
jne 0x10031031
mov ecx, dword [ebp + 0x10]
call fcn.1002eed0
cmp dword [esp + 0x30], eax
jne 0x10031027
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 0x10031027
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.1000d262
mov eax, dword [eax]
lea esi, [eax - 0x10]
lea ebx, [edi - 0x10]
cmp esi, ebx
mov byte [esp + 0xc0], 5
je 0x10030f56
cmp dword [ebx + 0xc], 0
jl 0x10030f44
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x10030f44
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x10030eec
cmp eax, dword [esi]
jne 0x10030eec
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x10030f22
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 0x100313e9
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 0x10030f3b
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 0x10030f56
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.10006b67
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 0x10030f7e
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 0x10030f8d
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 0x10030fd0
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 0x10030e90
jmp 0x10031027
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x18]
je 0x10031027
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x30]
call fcn.1000d262
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc4], 6
call fcn.1000d2a0
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 0x10031023
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 0x1003127d
mov eax, dword [edi - 0xc]
cmp eax, 0xffffffff
jne 0x10031040
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 0x100310a4
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.10034030
mov esi, eax
jmp 0x100310a6
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 0x100310c0
sub eax, dword [esp + 0x24]
push eax
push edi
call fcn.10006b67
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 0x1003110f
xor edx, edx
jmp 0x10031117
mov edx, dword [ebx + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x10031134
mov ecx, dword [ebx + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x10031134
mov eax, dword [ebx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x1003115b
mov ecx, dword [ebx + 8]
cmp eax, ecx
mov dword [esp + 0x24], ecx
jbe 0x10031148
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.10030020
mov ecx, dword [esi + 0x54]
cmp dword [ecx - 0xc], 0
je 0x100311c1
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x100311c1
mov ecx, dword [ebx + 4]
test ecx, ecx
mov dword [esp + 0x24], esi
jne 0x1003117a
xor edx, edx
jmp 0x10031182
mov edx, dword [ebx + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x1003119f
mov eax, dword [ebx + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x1003119f
mov eax, dword [ebx + 8]
mov dword [eax], esi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x100311c1
mov esi, dword [ebx + 8]
cmp ecx, esi
jbe 0x100311ab
call fcn.10051df3
lea edx, [esp + 0x24]
push edx
push esi
push ebx
lea eax, [esp + 0x80]
push eax
mov ecx, ebx
call fcn.10030020
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.1002f790
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 0x10031240
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x10031232
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x10031232
push eax
call fcn.1000252a
mov dword [esp + 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x10031225
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 0x10031240
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.10006b67
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 0x10031268
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 0x1003127d
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], edx
cmp byte [esp + 0x1f], 0
je 0x100312c5
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov esi, dword [ebp + 0x10]
push eax
push ecx
push esi
call fcn.1002ef80
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x40]
push eax
push esi
push ecx
call fcn.10030840
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add esp, 0x1c
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
call fcn.1002f4b0
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 0x100312e9
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 0x10030d60
cmp byte [esp + 0x1e], 0
je 0x10031340
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov edi, dword [ebp + 0x10]
push ecx
push edx
push edi
call fcn.1002ef80
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.10030840
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 0x10031367
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.1002eed0
cmp esi, eax
jb 0x10030b47
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.1002ef80
add esp, 0xc
cmp esi, ebx
je 0x100313b3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push esi
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp edi, ebx
je 0x100313d3
mov eax, dword [edi]
cmp eax, ebx
je 0x100313ca
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x100313ca
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.10001dfe