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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [edi + 0x1c]
call fcn.004a1210
mov ecx, dword [edi + 0x1c]
mov edx, dword [eax]
push ebx
push ebx
push ecx
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call dword [edx + 0x84]
mov esi, dword [edi + 0x28]
dec esi
js 0x49930e
cmp esi, ebx
jl 0x4992fc
cmp esi, dword [edi + 0x28]
jge 0x4992fc
mov edx, dword [edi + 0x24]
mov ecx, dword [edx + esi*4]
jmp 0x4992fe
xor ecx, ecx
mov edx, dword [esp + 0x3c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x9c]
dec esi
jns 0x4992eb
push ebx
mov ecx, edi
call fcn.00498970
test eax, eax
jle 0x49971f
mov esi, dword [edi + 0x28]
lea eax, [esi + esi*8]
lea ecx, [esi + eax*2]
shl ecx, 2
push ecx
call fcn.0056bc5e
add esp, 4
cmp eax, ebx
je 0x499340
dec esi
mov ebp, eax
mov dword [esp + 0x10], esi
jmp 0x499342
xor ebp, ebp
mov eax, dword [edi + 0x28]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x10], ebp
jle 0x4993ee
lea esi, [ebp + 0x3c]
jmp 0x49935a
xor ecx, ecx
cmp ebx, ecx
jl 0x49936a
cmp ebx, eax
jge 0x49936a
mov edx, dword [edi + 0x24]
mov eax, dword [edx + ebx*4]
jmp 0x49936c
xor eax, eax
mov dword [esi], eax
lea eax, [esi - 0x2c]
push eax
mov dword [esi - 0x10], ecx
mov dword [esi - 0xc], ecx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, dword [esp + 0x34]
mov ecx, dword [esi]
push eax
lea eax, [esp + 0x28]
mov edx, dword [ecx]
push eax
call dword [edx + 0x94]
mov ecx, dword [eax]
push 2
mov dword [esi - 0x1c], ecx
mov ecx, dword [esi]
mov edx, dword [eax + 4]
lea eax, [ecx + 0xbc]
mov dword [esi - 0x18], edx
lea edx, [esi - 0x3c]
mov ebp, dword [eax]
mov dword [edx], ebp
mov ebp, dword [eax + 4]
mov dword [edx + 4], ebp
mov ebp, dword [eax + 8]
mov dword [edx + 8], ebp
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ecx + 0x94]
mov dword [esi - 8], edx
mov eax, dword [ecx]
call dword [eax + 0x78]
mov ecx, dword [esi]
mov dword [esi - 0x14], eax
call fcn.00492690
mov dword [esi - 4], eax
mov eax, dword [edi + 0x28]
inc ebx
add esi, 0x4c
cmp ebx, eax
jl 0x499358
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x40], ecx
mov edx, dword [esp + 0x20]
mov dword [ebp + 0x44], edx
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0x168]
mov dword [ebp + 0x48], ecx
mov ecx, dword [esp + 0x3c]
test cl, 4
je 0x49941c
mov edx, dword [edi + 0x1c]
mov ebx, dword [edx + 0xb0]
jmp 0x499420
mov ebx, dword [esp + 0x38]
mov eax, dword [edi + 0x1c]
test dword [eax + 0xd4], 0x200000
je 0x499482
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x3c]
test cl, 0x10
push eax
mov ecx, ebx
je 0x499461
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
sub ecx, edx
mov edx, dword [esp + 0x38]
sub ecx, eax
lea eax, [esp + 0x28]
push ecx
push ebp
push edx
push eax
mov ecx, edi
call fcn.00499100
jmp 0x499561
mov edx, dword [esi + 8]
mov eax, dword [esi]
sub ecx, edx
mov edx, dword [esp + 0x38]
sub ecx, eax
lea eax, [esp + 0x28]
push ecx
push ebp
push edx
push eax
mov ecx, edi
call fcn.00499100
jmp 0x499561
mov esi, dword [esp + 0x40]
test ch, 1
je 0x4994e9
mov edx, dword [eax + 0xb0]
lea ecx, [esp + 0x3c]
push ecx
push edx
push ebp
mov ecx, edi
call fcn.00497f50
push 0
lea eax, [esp + 0x28]
push ebp
push eax
mov ecx, edi
call fcn.00497dc0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
lea ecx, [eax + eax*2]
cmp edx, ecx
jle 0x4994d9
mov edx, dword [edi + 0x1c]
mov ecx, dword [edx + 0xb0]
test ecx, ecx
jg 0x4994d9
mov eax, dword [esp + 0x3c]
mov ecx, edi
push eax
push ebp
call fcn.00498140
jmp 0x49954c
lea ecx, [esp + 0x3c]
push ecx
push eax
push ebp
mov ecx, edi
call fcn.00497f50
jmp 0x49954c
test cl, 8
je 0x499509
mov ecx, dword [esi + 8]
lea edx, [esp + 0x3c]
mov eax, ebx
push edx
mov edx, dword [esi]
sub eax, ecx
sub eax, edx
mov ecx, edi
push eax
push ebp
call fcn.00497f50
jmp 0x49954c
test cl, 0x10
je 0x49952a
mov eax, dword [esi + 4]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esi + 0xc]
mov edx, ebx
sub edx, ecx
mov ecx, edi
sub edx, eax
push edx
push ebp
call fcn.00497f50
jmp 0x49954c
test cl, 0x20
je 0x499537
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
jmp 0x49953c
mov eax, dword [esi + 8]
mov edx, dword [esi]
push ecx
add eax, edx
mov ecx, ebx
sub ecx, eax
push ecx
push ebp
mov ecx, edi
call fcn.00498200
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x24]
and edx, 0x10
mov ecx, edi
push edx
push ebp
push eax
call fcn.00497dc0
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x3c]
test eax, eax
jle 0x499599
test dl, 8
je 0x4995bb
mov edx, dword [esi + 0xc]
sub eax, edx
mov edx, dword [esi + 4]
sub eax, edx
mov edx, dword [esp + 0x18]
cmp eax, edx
jle 0x499595
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x3c]
test dl, 1
je 0x4995dd
test dl, 0x10
je 0x4995cc
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
sub ebx, eax
mov eax, dword [esp + 0x18]
sub ebx, ecx
cmp ebx, eax
jle 0x4995dd
mov dword [esp + 0x18], ebx
jmp 0x4995dd
sub eax, dword [esi + 8]
sub eax, dword [esi]
cmp eax, ecx
jle 0x499599
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x499599
mov eax, dword [esi + 8]
sub ebx, eax
mov eax, dword [esi]
sub ebx, eax
cmp ebx, ecx
jle 0x4995dd
mov dword [esp + 0x14], ebx
sub esp, 0x10
mov eax, esi
mov ecx, esp
mov ebx, dword [eax]
push edx
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 8]
mov dword [ecx + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x28]
push ecx
push ebp
mov ecx, edi
call fcn.00498490
mov eax, dword [esp + 0x3c]
test al, 0x40
je 0x4996fb
mov edx, dword [edi + 0x1c]
test dword [edx + 0xd4], 0x200000
jne 0x499651
mov ecx, dword [esi]
push eax
mov edx, dword [esi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x2c]
push eax
push ecx
push ebp
mov ecx, edi
call fcn.00498620
mov eax, dword [edi + 0x28]
mov dword [esp + 0x34], 0
test eax, eax
jle 0x4996fb
lea esi, [ebp + 0x3c]
mov ecx, dword [esi]
mov eax, dword [esi - 0xc]
test eax, eax
mov edx, dword [ecx]
mov eax, dword [ecx + 0xcc]
je 0x49967c
or al, 2
jmp 0x49967e
and al, 0xfd
push eax
call dword [edx + 0x8c]
lea ecx, [esi - 0x2c]
mov ebp, dword [esi]
mov ebx, ecx
add ebp, 0xac
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ebx
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x4996d5
lea eax, [esi - 0x3c]
sub esp, 0x10
mov ecx, dword [esi]
mov ebx, esp
mov ebp, dword [eax]
mov edx, dword [ecx]
mov dword [ebx], ebp
mov ebp, dword [eax + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [eax + 8]
mov dword [ebx + 8], ebp
mov eax, dword [eax + 0xc]
mov dword [ebx + 0xc], eax
call dword [edx + 0x74]
mov ecx, dword [esi]
mov edx, dword [esi - 0x10]
mov eax, dword [esp + 0x34]
add esi, 0x4c
mov dword [ecx + 0x90], edx
mov ecx, dword [edi + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x499667
mov ebp, dword [esp + 0x10]
push ebp
call fcn.0056bc87
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [eax], edx
mov dword [eax + 4], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x18
mov eax, dword [esp + 0x40]
mov bl, byte [esp + 0x3c]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
mov ebp, dword [eax + 4]
add ecx, edx
mov edx, dword [eax + 0xc]
add edx, ebp
lea eax, [ecx + 0x17]
test bl, 8
lea ecx, [edx + 0x16]
mov edx, eax
je 0x499760
mov eax, dword [esp + 0x44]
cmp eax, ecx
jle 0x49976a
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [eax], edx
mov dword [eax + 4], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x18
mov esi, dword [esp + 0x44]
cmp esi, eax
jle 0x49976a
mov edx, esi
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [eax], edx
mov dword [eax + 4], ecx
pop ebx
add esp, 0x1c
ret 0x18