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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101e2610
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x110]
mov dword [esp + 0x18], esi
call fcn.10126640
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
xor ebx, ebx
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call edx
mov eax, dword [esi + 0x14]
mov edi, dword [eax]
cmp edi, ebx
mov dword [esp + 0x20], edi
je 0x1012123a
mov eax, dword [edi]
mov edx, dword [eax + 0x26c]
lea ecx, [esp + 0x2c]
push ecx
push edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x2b0]
lea ecx, [esp + 0x24]
push ecx
push edi
call edx
cmp dword [esp + 0x2c], 1
jle 0x1012123a
mov eax, dword [esp + 0x24]
lea ecx, [eax - 1]
test ecx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
jle 0x10120fbb
add esi, 0xb4
sub eax, ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x14], eax
jmp 0x10120bc4
mov ecx, dword [esp + 0x28]
mov eax, dword [edi]
mov eax, dword [eax + 0x268]
lea edx, [esp + 0x80]
push edx
push ecx
push edi
call eax
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
lea edx, [esp + 0x58]
push edx
mov ebx, eax
push eax
mov eax, dword [ecx + 0x20]
call eax
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x3c]
lea edx, [esp + 0x34]
push edx
push ebx
call eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
cdq
mov dword [esp + 0x88], edx
mov dword [esp + 0x98], edx
lea edx, [esp + 0x78]
push edx
lea ebx, [esp + 0x98]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x98], eax
call fcn.10122f10
mov eax, dword [esp + 0x78]
test eax, eax
mov ebx, dword [esi + 4]
je 0x10120c48
cmp eax, esi
je 0x10120c4e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x7c], ebx
je 0x10120f9c
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x70], ecx
push esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], eax
call fcn.10122af0
lea edx, [esp + 0x9c]
push edx
mov edi, eax
call fcn.100ed510
xor esi, esi
mov dword [esp + 0x110], esi
mov ebx, 1
cmp dword [esp + 0x9c], ebx
push 0x34
sete al
test al, al
je 0x10120e5d
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x54], eax
mov byte [esp + 0x110], bl
cmp eax, esi
je 0x10120cc9
mov esi, eax
call fcn.10117cc0
mov esi, eax
mov byte [esp + 0x110], 0
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x24]
jne 0x10120ceb
mov eax, dword [esp + 0x3c]
lea ecx, [eax + 8]
mov dword [esp + 0x5c], ecx
lea ebx, [eax + 3]
jmp 0x10120cef
mov ebx, dword [esp + 0x1c]
fild dword [esp + 0x30]
fmul qword [0x10244270]
call fcn.101d2460
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
sub edi, eax
mov eax, dword [esp + 0x48]
lea ecx, [eax + edx + 3]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [ecx + ebx]
mov ebx, dword [sym.imp.USER32.dll_SetRect]
push edx
mov edx, dword [esp + 0x40]
add edx, eax
push edx
add ecx, edi
push ecx
push esi
call ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x5c]
add eax, ecx
mov ecx, dword [esp + 0x48]
cdq
sub eax, edx
mov edx, dword [esp + 0x44]
sar eax, 1
add eax, edx
mov edx, dword [esp + 0x40]
add edx, ecx
push edx
mov edx, dword [esp + 0x3c]
push eax
add edx, ecx
push edx
push eax
lea eax, [esi + 0x20]
push eax
call ebx
mov ecx, dword [esp + 0x2c]
add ecx, 0xffffffff
cmp dword [esp + 0x28], ecx
jne 0x10120d71
mov dword [esi + 0x14], 0xffffffff
jmp 0x10120d7b
mov edx, dword [esp + 0xa0]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x18], eax
mov dword [esi + 0x10], ecx
mov eax, dword [edx + 0x110]
mov dword [esp + 0x1c], esi
lea esi, [eax + 0x20]
lea ebx, [esp + 0x1c]
call fcn.1001fb10
push 0x34
mov ebx, edi
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x54], eax
mov byte [esp + 0x110], 2
test eax, eax
je 0x10120dcd
mov esi, eax
call fcn.10117cc0
mov esi, eax
jmp 0x10120dcf
xor esi, esi
mov byte [esp + 0x110], 0
fild dword [esp + 0x30]
fmul qword [0x10244268]
call fcn.101d2460
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
sub edi, eax
mov eax, dword [esp + 0x48]
lea edx, [eax + ecx + 3]
mov ecx, dword [esp + 0x44]
push edx
lea edx, [ecx + ebx]
mov ebx, dword [sym.imp.USER32.dll_SetRect]
push edx
mov edx, dword [esp + 0x40]
add edx, eax
push edx
add ecx, edi
push ecx
push esi
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
add eax, ecx
push eax
lea ecx, [edx + edi]
push ecx
push eax
push ecx
lea eax, [esi + 0x20]
push eax
call ebx
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x58]
mov dword [esi + 0x14], ecx
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x18], edx
mov dword [esi + 0x10], eax
mov byte [esi + 0x1c], 0
mov eax, dword [ecx + 0x110]
jmp 0x10120f4d
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x54], eax
mov byte [esp + 0x110], 3
cmp eax, esi
je 0x10120e7e
mov esi, eax
call fcn.10117cc0
mov esi, eax
mov byte [esp + 0x110], 0
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x24]
jne 0x10120ea0
mov eax, dword [esp + 0x3c]
lea ecx, [eax + 8]
mov dword [esp + 0x5c], ecx
lea ebx, [eax + 3]
jmp 0x10120ea4
mov ebx, dword [esp + 0x1c]
fild dword [esp + 0x30]
fmul qword [0x10244260]
call fcn.101d2460
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
sub edi, eax
mov eax, dword [esp + 0x48]
lea ecx, [eax + edx + 3]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [ecx + ebx]
mov ebx, dword [sym.imp.USER32.dll_SetRect]
push edx
mov edx, dword [esp + 0x40]
add edx, eax
push edx
lea eax, [edi + ecx]
push eax
push esi
call ebx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x5c]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x44]
cdq
sub eax, edx
mov edx, dword [esp + 0x40]
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x48]
add edx, ecx
push edx
mov edx, dword [esp + 0x3c]
push eax
add edx, ecx
push edx
push eax
lea eax, [esi + 0x20]
push eax
call ebx
mov ecx, dword [esp + 0x2c]
add ecx, 0xffffffff
cmp dword [esp + 0x28], ecx
jne 0x10120f28
mov dword [esi + 0x14], 0xffffffff
jmp 0x10120f32
mov edx, dword [esp + 0xa0]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x18], eax
mov dword [esi + 0x10], ecx
mov eax, dword [edx + 0x110]
mov dword [esp + 0x30], esi
lea ebx, [esp + 0x30]
lea esi, [eax + 0x20]
call fcn.1001fb10
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x110], 0xffffffff
lea eax, [esp + 0x9c]
push eax
call fcn.10007e40
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
sub eax, 1
test eax, eax
mov dword [esp + 0x28], eax
jg 0x10120bc0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x18]
cmp eax, 1
jne 0x10121147
push 0x34
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x110], 4
test eax, eax
je 0x10120ff0
mov esi, eax
call fcn.10117cc0
mov esi, eax
mov dword [esp + 0x2c], esi
jmp 0x10120ffc
mov dword [esp + 0x2c], 0
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x110], 0xffffffff
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x68]
lea edx, [ecx + eax + 3]
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x20]
add edx, ecx
push edx
mov edx, dword [esp + 0x24]
add eax, ebx
push eax
lea eax, [edx + ecx - 0x22]
push eax
push esi
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x268]
lea edx, [esp + 0x14]
push edx
push 0
push edi
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
lea eax, [edx + ecx + 2]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x68]
add edx, ecx
push edx
push eax
add ebx, ecx
push ebx
push eax
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [esp + 0x14]
push edx
mov dword [esi + 0x14], 0xfffffffe
mov ecx, dword [edi]
mov eax, dword [ecx + 0x268]
push 1
push edi
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cdq
lea ecx, [esp + 0x78]
add esi, 0xb4
push ecx
lea ebx, [esp + 0x70]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
call fcn.10122f10
mov eax, dword [esp + 0x78]
test eax, eax
mov ebx, dword [esi + 4]
je 0x101210d9
cmp eax, esi
je 0x101210df
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x7c], ebx
je 0x10121143
mov edx, dword [edi]
mov ecx, dword [edx + 0x268]
lea eax, [esp + 0x14]
push eax
push 1
push edi
call ecx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x20]
push ecx
push eax
call edx
mov eax, dword [esp + 0x20]
cdq
push esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
call fcn.10122af0
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov dword [eax + 0x18], ecx
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x110]
lea esi, [eax + 0x20]
lea ebx, [esp + 0x14]
call fcn.1001fb10
mov esi, dword [esp + 0x18]
mov ebx, dword [esi + 0x110]
call fcn.10126600
mov eax, dword [edi]
mov edx, dword [eax + 0x270]
lea ecx, [esp + 0x14]
push ecx
push edi
call edx
mov edi, dword [esp + 0x14]
test edi, edi
je 0x1012123a
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x2c], 0
call edx
cmp word [esp + 0x24], 0
je 0x1012123a
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x20]
push ecx
push edi
call edx
cmp dword [esp + 0x20], 0
jle 0x1012123a
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
lea ecx, [esp + 0x5c]
push ecx
push edi
call edx
push 0x34
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x110], 5
test eax, eax
je 0x101211de
mov esi, eax
call fcn.10117cc0
mov esi, dword [esp + 0x18]
jmp 0x101211e0
xor eax, eax
mov dword [esp + 0x110], 0xffffffff
mov byte [eax + 0x30], 1
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x5c]
add edx, ecx
mov dword [eax], edx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x60]
add edx, ecx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
add edx, ecx
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x68]
lea ecx, [edx + ecx + 3]
mov dword [eax + 0xc], ecx
mov esi, dword [esi + 0x110]
add esi, 0x20
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.1001fb10
xor eax, eax
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.101d19cc
mov esp, ebp
pop ebp
ret