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

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov esi, dword [esp + 0xac]
cmp dword [esi + 0x50], 0
push edi
je 0x5ae15a
mov ebp, dword [esi + 0x4c]
mov edi, dword [esi + 0x48]
add ebp, 0x7c
add edi, 0x20
xor ebx, ebx
mov eax, ebp
mov dword [esp + 0x64], edi
mov dword [esp + 0x2c], ebx
call fcn.0057a810
test eax, eax
jbe 0x5ae15a
jmp 0x5ad906
mov edi, dword [esp + 0x64]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x5ad919
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5ad91e
call fcn.005d29f1
mov ecx, dword [ebp + 4]
cmp dword [ecx + ebx*4], 0
je 0x5ae144
test ecx, ecx
je 0x5ad93b
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5ad940
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
cmp dword [eax + 0x2c], 0
je 0x5ae144
test ecx, ecx
je 0x5ad960
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5ad965
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x5ae144
test byte [eax], 1
je 0x5ae144
test ecx, ecx
je 0x5ad98c
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5ad991
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov edx, dword [eax]
mov ecx, esi
call fcn.00590f30
mov edx, dword [edi + 0x40]
add edi, 0x40
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x4c]
cmp dword [eax + 0x90], 0
mov dword [esp + 0x28], edx
je 0x5ada9c
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x5ad9d1
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5ad9d6
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
mov edx, dword [ecx + ebx*4]
mov eax, dword [edx + 8]
mov dword [esp + 0x14], eax
je 0x5ad9f3
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5ad9f8
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov edx, dword [eax + 0x18]
sub edx, dword [eax + 0x10]
add eax, 0xc
test ecx, ecx
mov dword [esp + 0x10], edx
je 0x5ada1b
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5ada20
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov esi, dword [eax + 0x14]
sub esi, dword [eax + 0xc]
add eax, 0xc
test ecx, ecx
je 0x5ada3f
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5ada44
call fcn.005d29f1
mov edi, dword [ebp + 4]
test edi, edi
je 0x5ada57
mov eax, dword [ebp + 8]
sub eax, edi
sar eax, 2
cmp ebx, eax
jb 0x5ada5c
call fcn.005d29f1
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [edi + ebx*4]
push eax
mov eax, dword [edx + 0x10]
push ecx
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + ebx*4]
mov edi, dword [edx + 0xc]
push esi
push eax
mov eax, dword [esp + 0xcc]
push eax
mov eax, dword [esp + 0xcc]
call fcn.00590c10
mov esi, dword [esp + 0xb0]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x5adaaf
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5adab4
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
mov ecx, esi
call fcn.00590ee0
test eax, eax
mov dword [esp + 0x14], eax
je 0x5adbbe
mov esi, dword [esi + 0x50]
call fcn.0057b9a0
mov ecx, dword [ebp + 4]
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x5adaec
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5adaf1
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
lea edx, [ecx + ebx*4]
mov dword [esp + 0x30], edx
je 0x5adb0b
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5adb10
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
lea eax, [ecx + ebx*4]
mov dword [esp + 0x28], eax
je 0x5adb2a
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5adb2f
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
lea edi, [ecx + ebx*4]
je 0x5adb45
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5adb4a
call fcn.005d29f1
mov ecx, dword [ebp + 4]
test ecx, ecx
mov edx, dword [ecx + ebx*4]
mov esi, dword [edx + 4]
je 0x5adb63
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5adb68
call fcn.005d29f1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x68]
lea ecx, [eax + 0x44]
push ecx
add eax, 0x40
push eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [ecx]
mov ecx, dword [edi]
push edx
mov edx, dword [eax]
mov eax, dword [ebp + 4]
add ecx, 0x30
push ecx
mov ecx, dword [eax + ebx*4]
mov eax, dword [esp + 0xcc]
add ecx, 0x1c
push ecx
mov ecx, dword [esp + 0xcc]
push eax
push ecx
add edx, 0x34
mov ecx, esi
call fcn.00590400
mov esi, dword [esp + 0xb0]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x5adbd1
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5adbd6
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + ebx*4]
test dword [edx], 0x100
je 0x5adcdf
mov eax, dword [esi + 0x50]
test eax, eax
je 0x5ae144
mov eax, dword [eax + 0x58]
test eax, eax
je 0x5ae144
mov eax, dword [eax + 0x40]
test eax, eax
mov dword [esp + 0x14], eax
je 0x5ae144
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
add eax, 0x4c
mov dword [esp + 0x88], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x8c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x90], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 0x5c]
push ecx
mov dword [esp + 0x98], edx
push 0
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0xb4]
lea eax, [esp + 0x88]
call fcn.005812a0
fld dword [0x640944]
push ecx
mov ecx, dword [esp + 0x18]
fstp dword [esp]
push edx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x94]
mov dword [esp + 0x1c], 0
call fcn.0058d8c0
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [esp + 0xb0]
add eax, 0x4c
mov dword [ecx + 0xd0], edx
mov edx, dword [eax + 4]
mov dword [ecx + 0xd4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 0xd8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0x100], 1
mov esi, ecx
jmp 0x5ae144
test ecx, ecx
je 0x5adcef
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5adcf4
call fcn.005d29f1
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + ebx*4]
test dword [edx], 0x1000000
jne 0x5add20
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x2000000
mov esi, dword [esp + 0xb0]
je 0x5ae144
mov eax, dword [esi + 0x160]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x14], eax
je 0x5adf08
mov edx, dword [eax + 0x10]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov ecx, dword [eax + 0xc]
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
call fcn.0057a830
mov eax, dword [eax]
test byte [eax], 8
je 0x5ade14
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x50]
add eax, 0x4c
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov ecx, dword [esp + 0x70]
add eax, 1
mov dword [esp + 0x44], eax
add eax, ecx
mov dword [esp + 0x4c], eax
call fcn.0057a830
mov eax, dword [eax]
add eax, 0x40
mov dword [esp + 0x10], eax
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx]
jge 0x5addcf
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x48], eax
jmp 0x5adddd
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x48]
add ecx, eax
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x50], ecx
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add eax, 0x4c
mov dword [eax], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
add eax, 0x4c
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x70]
sub ecx, 2
sub eax, 2
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xa0], edx
mov edx, dword [ecx + 0x5c]
push edx
mov dword [esp + 0xa8], eax
push 0
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov esi, dword [esp + 0xb4]
lea eax, [esp + 0x34]
mov edx, esi
call fcn.005812a0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
push 0
push 0
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x40]
sub edx, eax
push edx
mov edx, dword [esp + 0x4c]
push ecx
push esi
mov esi, dword [esp + 0x2c]
sub edx, ecx
mov bl, 1
call fcn.00580620
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
mov dword [eax + 0x150], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x154], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0x158], ecx
mov dword [eax + 0x15c], edx
mov dword [eax + 0x180], 1
mov esi, eax
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x5adf1b
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x5adf20
call fcn.005d29f1
mov eax, dword [ebp + 4]
mov ecx, dword [eax + ebx*4]
test dword [ecx], 0x2000000
je 0x5ae144
mov eax, dword [esi + 0x1a0]
test eax, eax
mov dword [esp + 0x14], eax
je 0x5ae144
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
xor ecx, ecx
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], eax
call fcn.0057a830
mov eax, dword [eax]
test byte [eax], 8
je 0x5ae032
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x50]
add eax, 0x4c
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov ecx, dword [esp + 0x80]
add eax, 1
mov dword [esp + 0x54], eax
add eax, ecx
mov dword [esp + 0x5c], eax
call fcn.0057a830
mov eax, dword [eax]
add eax, 0x40
mov dword [esp + 0x10], eax
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx]
jge 0x5adfea
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x58], eax
jmp 0x5adff8
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x58]
add ecx, eax
mov edi, ebx
mov esi, ebp
mov dword [esp + 0x60], ecx
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
add eax, 0x4c
mov dword [eax], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edi, ebx
mov esi, ebp
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
add eax, 0x4c
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x20], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xa0]
sub eax, dword [esp + 0x98]
lea ecx, [ecx + eax + 2]
lea edx, [edx + eax + 2]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x4c], ecx
mov edx, dword [esp + 0x1c]
add eax, 0x4c
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 0x5c]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0xb4]
lea eax, [esp + 0x18]
call fcn.005812a0
mov ecx, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x14]
push 0
push 0
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x24]
push ecx
push eax
mov eax, dword [esp + 0x30]
push edx
mov bl, 1
mov edx, edi
call fcn.00580620
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x2c]
add edx, ecx
mov dword [eax + 0x190], esi
add edi, esi
mov dword [eax + 0x194], ecx
mov dword [eax + 0x198], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edi
mov dword [eax + 0x19c], edx
mov dword [eax + 0x1c0], 1
mov esi, eax
add ebx, 1
mov eax, ebp
mov dword [esp + 0x2c], ebx
call fcn.0057a810
cmp ebx, eax
jb 0x5ad902
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 8