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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x58]
mov eax, dword [ebp + 0x50]
test eax, eax
push esi
push edi
je 0x5ad43a
cmp dword [eax + 0x58], 0
je 0x5ad43a
mov esi, dword [esp + 0x64]
test esi, esi
je 0x5ad43a
mov eax, dword [ebp + 0x48]
test eax, eax
je 0x5ad43a
cmp dword [ebp + 0x4c], 0
je 0x5ad43a
mov ebx, dword [ebp + 0x4c]
lea edi, [eax + 0x20]
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
mov dword [esp + 0x18], edi
add ebx, 0x34
call edx
cmp dword [ebp + 0x14], eax
jg 0x5ad43a
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp dword [ebp + 0x18], eax
jg 0x5ad43a
mov eax, dword [ebp + 0x4c]
cmp dword [eax + 0x3b0], 0
je 0x5ad0ea
lea eax, [edi + 0x108]
mov dword [esp + 0x20], eax
call fcn.0057a810
test eax, eax
je 0x5ad0ea
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp + 0x64]
mov edx, dword [ebp + 0x68]
push 0
push 0
push 0
push 0
push ecx
push eax
push edx
push eax
push esi
mov esi, dword [esp + 0x44]
call fcn.0057f6d0
mov esi, dword [esp + 0x88]
add esp, 0x24
call fcn.00577cb0
mov dword [esp + 0x1c], eax
call fcn.00577d00
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
je 0x5ad265
test eax, eax
je 0x5ad265
mov eax, ebx
xor edi, edi
call fcn.0057a810
test eax, eax
jle 0x5ad265
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
cmp dword [eax + 0x18], 0
je 0x5ad24f
call fcn.0057a830
mov eax, dword [eax]
test byte [eax + 0x14], 2
jne 0x5ad157
call fcn.0057a830
mov eax, dword [eax]
test byte [eax + 0x14], 4
jne 0x5ad157
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
jmp 0x5ad15f
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
test byte [eax + 0x14], 2
je 0x5ad17b
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x5ad188
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x14], edx
mov ebp, ecx
call fcn.0057a830
mov eax, dword [eax]
test byte [eax + 0x14], 4
je 0x5ad19c
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x14], eax
call fcn.0057a830
mov eax, dword [eax]
test byte [eax + 0x14], 8
je 0x5ad1b0
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x14], ecx
call fcn.0057a830
mov eax, dword [eax]
test byte [eax + 0x14], 0x10
je 0x5ad1c4
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x14], edx
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
call fcn.0057a830
mov eax, dword [eax]
mov ebp, dword [eax + 0x10]
sub ebp, dword [eax + 8]
add eax, 4
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x30], ecx
call fcn.0057a830
mov dword [esp + 0x28], eax
call fcn.0057a830
mov dword [esp + 0x34], eax
call fcn.0057a830
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
movzx ecx, byte [edx + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
shl ecx, 0x18
or ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x40]
push ebp
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push ecx
mov ecx, dword [edx + 8]
mov edx, dword [eax + 4]
call fcn.0058fc50
mov ebp, dword [esp + 0x60]
mov eax, ebx
add edi, 1
call fcn.0057a810
cmp edi, eax
jl 0x5ad120
mov esi, dword [esp + 0x64]
push esi
push ebp
call fcn.005ad8c0
mov eax, dword [ebp + 0x48]
test eax, eax
je 0x5ad306
lea edi, [eax + 0x70]
test edi, edi
je 0x5ad306
call fcn.00577cb0
test eax, eax
je 0x5ad306
mov eax, dword [ebp + 0x4c]
mov edx, dword [eax + 0x3c4]
cmp dword [edx - 0xc], 0
je 0x5ad306
cmp dword [eax + 0x3d4], 0
je 0x5ad306
mov ecx, edx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x60], 0
je 0x5ad2c4
cmp dword [eax + 0x3c8], 0
je 0x5ad2c4
mov dword [esp + 0x60], 1
movzx ebx, byte [eax + 0x3d0]
mov ecx, dword [eax + 0x3dc]
mov edx, dword [eax + 0x3d8]
shl ebx, 0x18
or ebx, dword [edi + 0x18]
push ebx
mov ebx, dword [esp + 0x64]
push ebx
mov ebx, dword [eax + 0x3e4]
sub ebx, ecx
push ebx
mov ebx, dword [eax + 0x3e0]
sub ebx, edx
push ebx
push ecx
mov ecx, dword [eax + 0x3c4]
push edx
push esi
push ebp
mov edx, edi
call fcn.00590190
mov eax, ebp
call fcn.00590ec0
mov edi, eax
test edi, edi
je 0x5ad377
mov edx, dword [ebp + 0x4c]
mov eax, dword [edx + 0x48]
cmp dword [eax - 0xc], 0
je 0x5ad377
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x5ad333
mov esi, eax
call fcn.0057b9f0
mov esi, dword [esp + 0x64]
jmp 0x5ad335
xor eax, eax
mov ecx, dword [ebp + 0x48]
test ecx, ecx
je 0x5ad349
add ecx, 0xc0
je 0x5ad349
mov edx, dword [ecx + 0x18]
jmp 0x5ad34e
mov edx, 0x8c7a6b
mov ecx, dword [ebp + 0x4c]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x68]
sub eax, dword [ecx + 0x60]
push edx
mov edx, dword [ecx + 0x48]
push edi
push edx
mov edx, dword [ecx + 0x64]
sub edx, dword [ecx + 0x5c]
push eax
mov eax, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x5c]
push edx
push eax
push ecx
mov edi, esi
call fcn.005aec90
call fcn.004062c0
mov edx, dword [0x678ec4]
cmp dword [edx + 0xd94], 0
mov dword [0x678ec0], 1
je 0x5ad43a
mov edi, dword [ebp + 0x120]
xor eax, eax
cmp edi, eax
je 0x5ad43a
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0xc]
mov edx, 5
mov dword [esp + 0x54], ecx
lea ebx, [eax + 5]
add ecx, edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x38]
mov edx, esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ecx
call fcn.005812a0
mov ecx, dword [esp + 0x44]
push 0
push 0
lea eax, [esp + 0x50]
push eax
add ecx, 0xfffffffb
push ecx
push 5
lea edx, [ebx - 5]
push esi
mov bl, 1
mov eax, 5
mov esi, edi
call fcn.00580620
mov eax, dword [edi + 0x10]
mov edi, dword [edi + 0xc]
mov ecx, 5
add edi, ecx
add eax, ecx
mov dword [ebp + 0x110], ecx
mov dword [ebp + 0x114], ecx
mov dword [ebp + 0x118], edi
mov dword [ebp + 0x11c], eax
mov dword [ebp + 0x140], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret 8