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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x78]
cmp eax, dword [ecx + 8]
jbe 0x5490e8
sub esp, 0xf8
mov edx, dword [esp + 0x118]
cmp edx, 1
jle 0x5490cf
mov ebx, dword [esp + 0x10c]
test ebx, ebx
jbe 0x5490c6
mov eax, dword [esp + 0x108]
mov eax, dword [eax]
test eax, 1
je 0x548783
mov eax, dword [esp + 0x120]
cmp eax, 1
je 0x54871a
lea ecx, [eax + 0x1f]
shr ecx, 5
mov dword [esp + 0x78], ecx
mov dword [esp], ecx
call fcn.005467f0
mov eax, dword [esp + 4]
mov dword [esp + 0x98], eax
mov ecx, dword [eax]
mov dword [esp + 0x9c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov ebx, dword [eax + 8]
mov dword [esp + 0x3c], ebx
lea edi, [esp + 0xb8]
mov ebp, eax
xor eax, eax
call fcn.00464650
xor eax, eax
jmp 0x5487ca
mov eax, dword [esp + 0x104]
cmp eax, 1
jl 0x548736
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0x104]
jmp 0x54875d
lea eax, [0x758680]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044b030
mov eax, dword [esp + 0xc]
mov ecx, 1
mov dword [eax], 1
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], 1
mov dword [esp + 0x12c], ecx
add esp, 0xf8
ret
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], 0
mov eax, dword [esp + 0x104]
mov dword [esp + 0x12c], eax
add esp, 0xf8
ret
mov dword [esp + ecx*4 + 0xb8], eax
lea eax, [ecx + 1]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x98]
cmp eax, 0x10
jge 0x5487f1
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.005467f0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x68]
cmp ecx, 0x10
jb 0x5487b1
jmp 0x5490ba
mov ecx, dword [esp + 0xb8]
mov esi, dword [ecx + 8]
mov ecx, dword [ecx]
mov eax, ebp
mov ebp, dword [0xa7b9c4]
mov dword [esp + 0x54], ebp
mov edi, edx
mov edx, dword [0xa7b9c0]
cmp esi, ebp
jge 0x5488a8
mov dword [esp + 0xa4], edx
cmp ebp, 1
jne 0x548869
lea eax, [0x758680]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044b030
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebp, 1
mov esi, 1
jmp 0x5488a8
lea eax, [0x758680]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea ecx, [ebp + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 8], ecx
call fcn.0044b030
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x54]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x54]
cmp ebp, ebx
jg 0x5488b2
mov ebx, ebp
cmp ecx, edx
je 0x5488f2
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0xa0], ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
shl ebx, 2
mov dword [esp + 8], ebx
call fcn.00464d50
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0xb8]
mov dword [edx + 4], ebp
mov dword [edx + 8], esi
mov ebx, dword [0xaab020]
test ebx, ebx
jne 0x54890d
mov dword [edx], ecx
jmp 0x548916
mov edi, edx
mov eax, ecx
call fcn.004643b0
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x108]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x110]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x120]
mov dword [esp + 0x18], ebx
call fcn.00547000
mov edi, dword [esp + 0xbc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0xaab020]
test ecx, ecx
jne 0x548988
mov dword [edi], eax
jmp 0x54898d
call fcn.004643b0
mov eax, 2
jmp 0x54899b
mov edx, dword [esp + 0x74]
lea eax, [edx + 2]
cmp eax, 0x10
jge 0x548b71
mov edx, eax
shr eax, 0x1f
add eax, edx
sar eax, 1
cmp eax, 0x10
jae 0x5490b0
mov ebx, dword [esp + eax*4 + 0xb8]
cmp edx, 0x10
jae 0x5490a4
mov ebp, dword [esp + edx*4 + 0xb8]
lea eax, [edx + 1]
cmp eax, 0x10
jae 0x54909a
mov dword [esp + 0x74], edx
mov dword [esp + 0xac], ebp
mov eax, dword [esp + edx*4 + 0xbc]
mov dword [esp + 0xa8], eax
mov ecx, dword [ebp]
mov esi, dword [ebp + 4]
mov edi, dword [ebp + 8]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov ebx, dword [ebx + 8]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.00546020
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0xac]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ebx, dword [0xaab020]
test ebx, ebx
jne 0x548a46
mov dword [edi], eax
jmp 0x548a4b
call fcn.004643b0
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x120]
mov dword [esp + 0x18], eax
call fcn.00547000
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0xac]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ebx, dword [0xaab020]
test ebx, ebx
jne 0x548a99
mov dword [edi], eax
jmp 0x548a9e
call fcn.004643b0
mov ebx, dword [esp + 0xa8]
mov ebp, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x108]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10c]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x110]
mov dword [esp + 0x20], edx
call fcn.00544f50
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0xa8]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ebx, dword [0xaab020]
test ebx, ebx
jne 0x548b11
mov dword [edi], eax
jmp 0x548b16
call fcn.004643b0
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x120]
mov dword [esp + 0x18], eax
call fcn.00547000
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0xa8]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0xaab020]
test ecx, ecx
jne 0x548b67
mov dword [edi], eax
jmp 0x548994
call fcn.004643b0
jmp 0x548994
mov edx, dword [esp + 0x120]
lea ecx, [edx - 1]
test ecx, 0x1f
je 0x548b8d
mov ebx, 1
shl ebx, cl
dec ebx
jmp 0x548b92
mov ebx, 0xffffffff
mov ecx, dword [esp + 0x118]
lea ebp, [ecx - 1]
lea esi, [edx - 2]
shr esi, 5
cmp esi, ebp
jge 0x548baa
mov eax, esi
jmp 0x548bae
mov eax, esi
mov esi, ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x58], ebx
nop
mov ebp, dword [esp + 0x104]
cmp ebp, 1
jl 0x548bcc
mov edi, dword [esp + 0xfc]
jmp 0x548c13
mov dword [esp + 0x64], esi
lea eax, [0x758680]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044b030
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x120]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x64]
mov edi, eax
mov ebp, 1
mov eax, dword [esp + 0x78]
mov dword [edi], 1
mov dword [esp + 0x8c], eax
xor eax, eax
mov byte [esp + 0x33], al
mov eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x8c]
jmp 0x548c61
dec esi
mov edx, dword [esp + 0x114]
mov ebx, dword [esp + 0x58]
mov edx, dword [esp + 0x120]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x84]
test esi, esi
jl 0x548c9c
cmp ecx, esi
jbe 0x549093
mov edx, dword [esp + 0x114]
mov edx, dword [edx + esi*4]
cmp esi, eax
jne 0x548c7d
and edx, ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
jmp 0x548e83
mov dword [esp + 0x94], edi
mov dword [esp + 0x48], ebp
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x98]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], ecx
mov ecx, dword [0xaab020]
test ecx, ecx
jne 0x548cd1
mov eax, dword [esp + 0x9c]
mov dword [edx], eax
jmp 0x548cdf
mov eax, dword [esp + 0x9c]
mov edi, edx
call fcn.004643b0
lea eax, [0xa85420]
mov dword [esp], eax
lea ecx, [0x7b0f00]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0046e2e0
xor eax, eax
jmp 0x548d2b
mov dword [esp + 0x60], eax
mov ecx, dword [esp + eax*4 + 0xb8]
lea edx, [0xa85420]
mov dword [esp], edx
lea ebx, [0x7b0f00]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.0046e2e0
mov eax, dword [esp + 0x60]
inc eax
cmp eax, 0x10
jge 0x548d34
jb 0x548cff
jmp 0x548d8a
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x94]
mov eax, ecx
jmp 0x548d45
mov ecx, ebp
test ecx, ecx
jle 0x548d58
lea ebp, [ecx - 1]
cmp eax, ebp
jbe 0x548d81
mov esi, dword [ebx + ecx*4 - 4]
test esi, esi
je 0x548d43
mov edx, dword [esp + 0x48]
cmp ecx, edx
ja 0x548d7c
mov dword [esp + 0x124], ebx
mov dword [esp + 0x128], ecx
mov dword [esp + 0x12c], edx
add esp, 0xf8
ret
call fcn.00464470
mov ecx, eax
mov eax, ebp
call fcn.00464430
mov ecx, 0x10
call fcn.00464430
mov dword [esp + 0x74], ebp
mov dword [esp + 0xb0], edi
mov dword [esp + 0x6c], eax
shr edx, 0x1c
mov edx, dword [esp + edx*4 + 0xb8]
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov edx, dword [edx + 8]
mov ecx, dword [esp + 0x9c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
call fcn.00544f50
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x120]
mov dword [esp + 0x18], eax
call fcn.00547000
mov eax, dword [esp + 0x5c]
add eax, 4
mov edx, dword [esp + 0x50]
shl edx, 4
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x5c], eax
mov ebx, 1
mov byte [esp + 0x33], bl
mov esi, dword [esp + 0x74]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0xb0]
mov dword [esp + 0x9c], esi
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x118]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x64]
mov ebx, dword [esp + 0x5c]
cmp ebx, 0x20
jge 0x548c38
mov dword [esp + 0x50], edx
movzx eax, byte [esp + 0x33]
test al, al
jne 0x548ea6
mov eax, dword [esp + 0x74]
jmp 0x548d94
mov dword [esp + 0x70], ebp
mov dword [esp + 0xb4], edi
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
call fcn.00546020
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x120]
mov dword [esp + 0x18], eax
call fcn.00547000
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x3c], edx
mov ebx, dword [esp + 0xb4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.00546020
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x120]
mov dword [esp + 0x18], eax
call fcn.00547000
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x6c], edx
mov ebx, dword [esp + 0x9c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.00546020
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x120]
mov dword [esp + 0x18], eax
call fcn.00547000
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x3c], edx
mov ebx, dword [esp + 0xb0]
mov dword [esp], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.00546020
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x120]
mov dword [esp + 0x18], eax
call fcn.00547000
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x50]
jmp 0x548d94
mov eax, esi
call fcn.00464430
mov ecx, 0x10
call fcn.00464430
mov eax, edx
mov ecx, 0x10
call fcn.00464430
mov ecx, 0x10
call fcn.00464430
mov eax, ecx
mov ecx, 0x10
call fcn.00464430
xor eax, eax
mov ecx, eax
call fcn.00464430
lea eax, [0x758c80]
mov dword [esp], eax
lea eax, [0x84396c]
mov dword [esp + 4], eax
call fcn.00436340
nop
call fcn.00462fa0
jmp fcn.00548670