Function at 0x4a9d00
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x510048
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x10c]
mov edx, dword [0x544fac]
xor ebp, ebp
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x544fac
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x8c], ebp
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
cmp dword [esi + 0x138], ebp
je 0x4a9dad
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x20]
push eax
call edx
mov ebx, dword [eax]
mov edi, dword [eax + 4]
cmp dword [esi + 0x140], ebp
je 0x4a9dc7
mov ecx, dword [esi + 0x140]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x20]
push edx
call eax
cmp dword [esi + 0x150], ebp
je 0x4a9dee
mov ecx, dword [esi + 0x150]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x20]
push eax
call edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [esi + 0x134]
cmp eax, ebp
je 0x4a9dfa
mov edi, eax
mov eax, dword [esi + 0x130]
cmp eax, ebp
je 0x4a9e06
mov ebx, eax
mov eax, dword [esi + 0x174]
sub eax, ebp
je 0x4a9e23
sub eax, 1
jne 0x4a9e2f
mov eax, dword [esi + 0x12c]
add eax, ebx
add dword [esp + 0x30], eax
jmp 0x4a9e2f
mov ecx, dword [esi + 0x12c]
add ecx, edi
add dword [esp + 0x34], ecx
cmp dword [esi + 0x13c], ebp
je 0x4a9e6d
mov edi, dword [esp + 0x30]
mov ecx, dword [esi + 0x13c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push ebp
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x48]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x4c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x50]
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0xa8]
push eax
call edx
mov eax, dword [esi + 0x104]
xor edx, edx
cmp eax, ebp
je 0x4a9ea7
lea esp, [esp]
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x4aa3d2
mov ecx, eax
mov ecx, dword [ecx + 8]
mov eax, dword [eax]
cmp ecx, ebp
je 0x4a9ea3
cmp dword [ecx + 0x128], ebp
jne 0x4a9ea3
inc edx
cmp eax, ebp
jne 0x4a9e80
xor ebx, ebx
cmp dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
jle 0x4aa323
jmp 0x4a9ec0
test ebx, ebx
jl 0x4aa312
cmp ebx, dword [esi + 0x10c]
jge 0x4aa312
jb 0x4a9eda
xor eax, eax
jmp 0x4a9ef7
mov eax, dword [esi + 0x104]
test eax, eax
je 0x4a9ef7
test ebx, ebx
jbe 0x4a9ef7
mov ecx, ebx
lea ebx, [ebx]
sub ecx, 1
mov eax, dword [eax]
jne 0x4a9ef0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4aa3d2
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x4aa312
cmp dword [ebp + 0x128], 0
jne 0x4aa312
lea eax, [esp + 0x30]
push eax
call fcn.004aab40
xor edi, edi
cmp dword [esi + 0x150], edi
je 0x4aa070
mov ecx, 1
cmp dword [esp + 0x1c], ecx
jle 0x4aa070
mov eax, dword [esi + 0x174]
sub dword [esp + 0x1c], ecx
sub eax, edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
je 0x4a9fcd
sub eax, ecx
jne 0x4aa039
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 0x124]
mov edx, dword [esp + 0x38]
add eax, ecx
push eax
mov eax, dword [esp + 0x34]
push edx
push ecx
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jle 0x4a9fa2
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
cmp ecx, eax
jle 0x4a9fbc
mov edx, ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], eax
sub eax, ecx
sub eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push edi
jmp 0x4aa02e
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x124]
mov edx, dword [esp + 0x3c]
push edx
add eax, ecx
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
cmp ecx, eax
jle 0x4aa00a
mov edx, ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x4c]
cmp edx, edi
jle 0x4aa01e
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], edx
sub eax, ecx
sub eax, dword [esp + 0x28]
push 0
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov edi, dword [esp + 0x40]
mov ecx, dword [esi + 0x150]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push 0xffffffffffffffff
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x58]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x5c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x60]
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0xa8]
push eax
call edx
cmp ebx, dword [esi + 0x120]
je 0x4aa312
cmp dword [ebp + 0x128], 0
je 0x4aa10a
cmp dword [esi + 0x148], 0
je 0x4aa24b
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x168]
push ecx
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x164]
push eax
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x64], edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [esp + 0x50]
mov ecx, dword [esi + 0x148]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x68]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x6c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x70]
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0xa8]
push eax
call edx
jmp 0x4aa24b
cmp dword [esi + 0x138], 0
je 0x4aa156
mov edi, dword [esp + 0x30]
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx]
xor eax, eax
cmp ebx, dword [esi + 0x11c]
mov edx, dword [edx + 0x18]
sete al
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x48]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x4c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x50]
mov dword [eax + 0xc], edi
mov edi, dword [esp + 0xa8]
push edi
call edx
jmp 0x4aa15d
mov edi, dword [esp + 0x94]
cmp dword [esi + 0x14c], 0
je 0x4aa1d1
cmp dword [ebp + 0x12c], 0
je 0x4aa1d1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esi + 0x168]
push ecx
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x164]
push eax
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x74], edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ebp, dword [esp + 0x60]
mov ecx, dword [esi + 0x14c]
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x78]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x7c]
mov dword [eax + 8], ebp
mov ebp, dword [esp + 0x80]
jmp 0x4aa240
cmp dword [esi + 0x140], 0
je 0x4aa24b
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esi + 0x168]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x164]
push ecx
mov dword [esp + 0x78], edx
push eax
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ebp, dword [esp + 0x70]
mov ecx, dword [esi + 0x140]
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [esp + 0x88]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x8c]
mov dword [eax + 8], ebp
mov ebp, dword [esp + 0x90]
mov edx, dword [ecx]
mov dword [eax + 0xc], ebp
mov eax, dword [edx + 0x18]
push edi
call eax
mov ecx, dword [esi + 0x170]
mov eax, dword [esi + 0x16c]
push ecx
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
cmp ebx, dword [esi + 0x10c]
jge 0x4aa29b
jb 0x4aa272
xor eax, eax
jmp 0x4aa287
mov eax, dword [esi + 0x104]
test eax, eax
je 0x4aa287
test ebx, ebx
jbe 0x4aa287
sub ebx, 1
mov eax, dword [eax]
jne 0x4aa280
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4aa3d2
mov eax, dword [eax + 8]
jmp 0x4aa29d
xor eax, eax
mov edx, dword [eax + 0x124]
test edx, edx
jne 0x4aa2ab
xor eax, eax
jmp 0x4aa2bf
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4aa2b0
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.00407680
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + 0x38]
sub eax, edi
sub edx, ebx
cmp dword [ebp - 0xc], 0
jle 0x4aa30e
push 0xff
push 0
push eax
mov eax, dword [esp + 0xa0]
push edx
push edi
push ebx
lea edx, [esp + 0x2c]
push edx
push eax
mov edx, 0x88a5
call fcn.004049b0
mov ebx, dword [esp + 0x20]
inc ebx
cmp ebx, dword [esp + 0x18]
mov dword [esp + 0x20], ebx
jl 0x4a9ec0
xor ebp, ebp
xor ebx, ebx
cmp dword [esp + 0x18], ebp
jle 0x4aa5de
nop
cmp ebx, ebp
jl 0x4aa36d
cmp ebx, dword [esi + 0x10c]
jge 0x4aa36d
jb 0x4aa342
xor eax, eax
jmp 0x4aa35d
mov eax, dword [esi + 0x104]
cmp eax, ebp
jne 0x4aa350
xor eax, eax
jmp 0x4aa35d
cmp ebx, ebp
jbe 0x4aa35d
mov ecx, ebx
sub ecx, 1
mov eax, dword [eax]
jne 0x4aa356
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x4aa3d2
mov eax, dword [eax + 8]
jmp 0x4aa36f
xor eax, eax
cmp dword [eax + 0x128], ebp
jne 0x4aa37f
cmp ebx, dword [esi + 0x120]
je 0x4aa38b
inc ebx
cmp ebx, dword [esp + 0x18]
jl 0x4aa330
jmp 0x4aa5de
lea ecx, [esp + 0x30]
push ecx
call fcn.004aab40
cmp ebx, ebp
jl 0x4aa3e1
cmp ebx, dword [esi + 0x10c]
jge 0x4aa3e1
jb 0x4aa3a7
xor eax, eax
jmp 0x4aa3c7
mov eax, dword [esi + 0x104]
cmp eax, ebp
jne 0x4aa3b5
xor eax, eax
jmp 0x4aa3c7
cmp ebx, ebp
jbe 0x4aa3c7
mov ecx, ebx
jmp 0x4aa3c0
sub ecx, 1
mov eax, dword [eax]
jne 0x4aa3c0
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4aa3dc
push 0x80004005
call fcn.004029f0
mov eax, dword [eax + 8]
jmp 0x4aa3e3
xor eax, eax
cmp dword [eax + 0x128], ebp
je 0x4aa43e
cmp dword [esi + 0x148], ebp
je 0x4aa507
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x78], ecx
mov ecx, dword [esi + 0x168]
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x164]
push ecx
push eax
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x88], edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esi + 0x148]
jmp 0x4aa4ce
cmp dword [esi + 0x138], ebp
je 0x4aa47d
mov edi, dword [esp + 0x30]
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push 2
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x48]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x4c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x50]
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0xa8]
push eax
call edx
cmp dword [esi + 0x144], ebp
je 0x4aa507
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 0x168]
push ecx
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0x164]
push eax
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x84], edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esi + 0x144]
mov edi, dword [esp + 0x70]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x88]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x8c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x90]
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0xa8]
push eax
call edx
mov ecx, dword [esi + 0x170]
mov eax, dword [esi + 0x16c]
push ecx
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
cmp ebx, ebp
jl 0x4aa565
cmp ebx, dword [esi + 0x10c]
jge 0x4aa565
jb 0x4aa532
xor eax, eax
jmp 0x4aa54b
mov eax, dword [esi + 0x104]
cmp eax, ebp
jne 0x4aa540
xor eax, eax
jmp 0x4aa54b
cmp ebx, ebp
jbe 0x4aa54b
sub ebx, 1
mov eax, dword [eax]
jne 0x4aa544
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4aa560
push 0x80004005
call fcn.004029f0
mov eax, dword [eax + 8]
jmp 0x4aa567
xor eax, eax
mov edx, dword [eax + 0x124]
cmp edx, ebp
jne 0x4aa575
xor eax, eax
jmp 0x4aa58f
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4aa580
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.00407680
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0x3c]
sub eax, ecx
sub edx, edi
cmp dword [ebx - 0xc], ebp
jle 0x4aa5de
push 0xff
push ebp
push eax
push edx
mov edx, dword [esp + 0xa4]
push ecx
push edi
lea ecx, [esp + 0x2c]
push ecx
push edx
mov ecx, esi
mov edx, 0x88a5
call fcn.004049b0
mov dword [esp + 0x8c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aa609
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 4