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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x505447
sub esp, 0x88
mov eax, dword [esp + 0x90]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x70]
test edx, edx
je 0x50537b
lea ebx, [0x6ceb20]
mov eax, dword [ebx + 0x50]
mov dword [esp], edx
call eax
cmp dword [esp + 4], 0x16
jne 0x50542e
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x505370
nop
movzx edx, byte [0x7cd2e8]
test dl, dl
je 0x505364
mov dword [0x7cd2ec], ecx
mov edx, dword [0x7e34e0]
test edx, edx
jne 0x50534d
mov eax, dword [esp + 0x94]
mov dword [0x7cd2f0], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x58]
test edx, edx
je 0x505340
nop
movzx ebx, byte [edx + 0xf]
mov ebp, ebx
and ebx, 0x1f
xchg ebp, eax
test al, 0x20
xchg ebp, eax
jne 0x504cc6
or ebx, 0x80
mov ebp, eax
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00488aa0
mov eax, dword [esp + 0x14]
and eax, 0x1f
lea ecx, [eax - 2]
nop
cmp ecx, 4
jbe 0x505068
lea ecx, [eax - 7]
cmp ecx, 4
jbe 0x504db3
cmp eax, 0x19
jne 0x505416
mov eax, dword [esp + 0x90]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x68]
test edx, edx
je 0x504daa
lea ebx, [0x6ceb20]
mov eax, dword [ebx + 0x28]
mov dword [esp], edx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
cmp dword [0x7cd108], eax
jne 0x505416
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [0x7cd10c]
mov dword [esp + 8], eax
call fcn.00404120
movzx eax, byte [esp + 0xc]
test al, al
je 0x505416
lea eax, [0x678aa0]
mov ecx, dword [esp + 0x90]
cmp eax, ecx
jne 0x505384
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
call fcn.00505460
movzx eax, byte [esp + 8]
mov byte [esp + 0x98], al
add esp, 0x88
ret
xor ebx, ebx
xor edx, edx
jmp 0x504d29
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
call fcn.00505880
movzx eax, byte [esp + 8]
test al, al
je 0x504f3b
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x50505d
nop
movzx edx, byte [0x7cd2e8]
test dl, dl
je 0x505051
mov dword [0x7cd2ec], ecx
mov edx, dword [0x7e34e0]
test edx, edx
jne 0x50503a
mov eax, dword [esp + 0x94]
mov dword [0x7cd2f0], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov edx, dword [esp + 0x80]
test edx, edx
je 0x50502d
nop
movzx ebx, byte [edx + 0xf]
mov ebp, ebx
and ebx, 0x1f
xchg ebp, eax
test al, 0x20
xchg ebp, eax
jne 0x504e5b
or ebx, 0x80
mov ebp, eax
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00488aa0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
nop
and ecx, 0x1f
lea ebp, [ecx - 7]
cmp ebp, 5
ja 0x50539a
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], edx
mov ebp, dword [eax]
shl ebp, 3
add ebp, 0xffffffc0
xchg ebp, ebx
neg ebx
xchg ebp, ebx
mov dword [esp + 0x3c], ebp
cmp ebp, 0x20
sbb esi, esi
lea ecx, [ebp - 0x20]
mov eax, ecx
neg ecx
mov dword [esp + 0x38], ecx
cmp ecx, 0x20
mov edi, esi
sbb esi, esi
mov dword [esp + 0x34], esi
cmp eax, 0x20
sbb esi, esi
mov dword [esp + 0x30], esi
mov ecx, eax
shl edx, cl
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
shr ebx, cl
and edx, esi
mov ecx, ebp
mov esi, dword [esp + 0x24]
shl esi, cl
mov ebp, dword [esp + 0x34]
and ebx, ebp
and esi, edi
or esi, ebx
or esi, edx
mov dword [esp + 0x34], esi
mov edx, esi
shr esi, cl
and esi, edi
mov ebx, dword [esp + 0x24]
cmp ebx, esi
setne bl
mov esi, dword [esp + 0x18]
shl esi, cl
and esi, edi
mov ecx, dword [esp + 0x38]
shl edx, cl
mov ecx, dword [esp + 0x3c]
shr esi, cl
and edx, ebp
and esi, edi
or esi, edx
mov ecx, eax
mov edx, dword [esp + 0x34]
shr edx, cl
mov ebp, dword [esp + 0x30]
and edx, ebp
or esi, edx
mov edx, dword [esp + 0x18]
cmp esi, edx
setne dl
or edx, ebx
test dl, dl
je 0x504f4a
mov byte [esp + 0x98], 0
add esp, 0x88
ret
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x505025
nop
movzx edx, byte [0x7cd2e8]
test dl, dl
je 0x505019
mov dword [0x7cd2ec], ecx
mov edx, dword [0x7e34e0]
test edx, edx
jne 0x505002
mov eax, dword [esp + 0x94]
mov dword [0x7cd2f0], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x504ffa
nop
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x504faf
or edx, 0x80
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00488aa0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.0048a260
mov byte [esp + 0x98], 1
add esp, 0x88
ret
xor edx, edx
xor ecx, ecx
xor eax, eax
jmp 0x504faf
lea edi, [0x7cd2f0]
mov eax, dword [esp + 0x94]
call fcn.0045c920
jmp 0x504f8a
mov eax, dword [esp + 0x94]
jmp 0x504f8a
xor edx, edx
xor ecx, ecx
xor eax, eax
jmp 0x504faf
mov ebp, eax
xor ebx, ebx
xor edx, edx
xor eax, eax
jmp 0x504e5d
lea edi, [0x7cd2f0]
mov eax, dword [esp + 0x94]
call fcn.0045c920
jmp 0x504e27
mov eax, dword [esp + 0x94]
jmp 0x504e27
xor ebx, ebx
xor edx, edx
xor eax, eax
jmp 0x504e5d
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
call fcn.00505660
movzx eax, byte [esp + 8]
test al, al
je 0x505213
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x505335
nop
movzx edx, byte [0x7cd2e8]
test dl, dl
je 0x505329
mov dword [0x7cd2ec], ecx
mov edx, dword [0x7e34e0]
test edx, edx
jne 0x505312
mov eax, dword [esp + 0x94]
mov dword [0x7cd2f0], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x60]
test edx, edx
je 0x505305
nop
movzx ebx, byte [edx + 0xf]
mov ebp, ebx
and ebx, 0x1f
xchg ebp, eax
test al, 0x20
xchg ebp, eax
jne 0x505107
or ebx, 0x80
mov ebp, eax
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00488aa0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
nop
and ecx, 0x1f
lea ebp, [ecx - 2]
cmp ebp, 4
ja 0x5053d8
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov ebp, dword [eax]
shl ebp, 3
add ebp, 0xffffffc0
xchg ebp, ebx
neg ebx
xchg ebp, ebx
mov dword [esp + 0x3c], ebp
cmp ebp, 0x20
sbb esi, esi
lea ecx, [ebp - 0x20]
cmp ecx, 0x20
mov eax, esi
sbb esi, esi
mov dword [esp + 0x38], esi
mov edi, ecx
neg ecx
mov dword [esp + 0x34], ecx
cmp ecx, 0x20
sbb esi, esi
mov dword [esp + 0x30], esi
shr ebp, 5
cmp ebp, 1
sbb ebp, ebp
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x3c]
cmp ebp, 0x20
sbb esi, esi
mov dword [esp + 0x3c], esi
shr edx, cl
mov ecx, ebp
shl ebx, cl
and ebx, eax
mov esi, dword [esp + 0x30]
and edx, esi
or edx, ebx
mov ecx, edi
mov ebx, dword [esp + 0x1c]
shl ebx, cl
mov esi, dword [esp + 0x38]
and ebx, esi
or ebx, edx
mov ecx, ebp
mov edx, dword [esp + 0x1c]
shl edx, cl
and edx, eax
xchg esi, ebx
not ebx
xchg esi, ebx
or esi, edi
mov ecx, dword [esp + 0x34]
mov edi, ebx
shl ebx, cl
mov ecx, ebp
shr edx, cl
mov ebp, dword [esp + 0x30]
and ebx, ebp
mov ebp, ecx
mov ecx, esi
mov esi, edi
sar edi, cl
mov ecx, esi
mov esi, dword [esp + 0x2c]
xor esi, 0xffffffff
and esi, edi
and edx, eax
or edx, ebx
or esi, edx
mov edx, dword [esp + 0x1c]
cmp edx, esi
setne dl
mov ebx, dword [esp + 0x3c]
not ebx
or ebp, ebx
mov eax, ecx
mov ecx, ebp
sar eax, cl
mov ebx, dword [esp + 0x20]
cmp eax, ebx
setne bl
or ebx, edx
test bl, bl
je 0x505222
mov byte [esp + 0x98], 0
add esp, 0x88
ret
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x5052fd
nop
movzx edx, byte [0x7cd2e8]
test dl, dl
je 0x5052f1
mov dword [0x7cd2ec], ecx
mov edx, dword [0x7e34e0]
test edx, edx
jne 0x5052da
mov eax, dword [esp + 0x94]
mov dword [0x7cd2f0], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x5052d2
nop
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x505287
or edx, 0x80
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00488aa0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.0048a170
mov byte [esp + 0x98], 1
add esp, 0x88
ret
xor edx, edx
xor ecx, ecx
xor eax, eax
jmp 0x505287
lea edi, [0x7cd2f0]
mov eax, dword [esp + 0x94]
call fcn.0045c920
jmp 0x505262
mov eax, dword [esp + 0x94]
jmp 0x505262
xor edx, edx
xor ecx, ecx
xor eax, eax
jmp 0x505287
mov ebp, eax
xor ebx, ebx
xor edx, edx
xor eax, eax
jmp 0x505109
lea edi, [0x7cd2f0]
mov eax, dword [esp + 0x94]
call fcn.0045c920
jmp 0x5050dc
mov eax, dword [esp + 0x94]
jmp 0x5050dc
xor ebx, ebx
xor edx, edx
xor eax, eax
jmp 0x505109
mov ebp, eax
xor ebx, ebx
xor edx, edx
xor eax, eax
jmp 0x504cc8
lea edi, [0x7cd2f0]
mov eax, dword [esp + 0x94]
call fcn.0045c920
jmp 0x504c9b
mov eax, dword [esp + 0x94]
jmp 0x504c9b
xor ebx, ebx
xor edx, edx
xor eax, eax
jmp 0x504cc8
xor ebx, ebx
xor edx, edx
jmp 0x504c48
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [0x642f00]
mov dword [esp + 8], eax
call fcn.00409c30
mov dword [esp + 0x28], ecx
lea eax, [0x653b80]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1a
lea ecx, [0x681ecf]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
lea ecx, [0x649280]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00431bb0
mov dword [esp + 0x28], ecx
lea eax, [0x653b80]
mov dword [esp], eax
call fcn.0040c800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x19
lea ecx, [0x6815f2]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
lea ecx, [0x649280]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00431bb0
lea eax, [0x643700]
mov dword [esp], eax
lea eax, [0x6c8560]
mov dword [esp + 4], eax
call fcn.00431bb0
lea eax, [0x643700]
mov dword [esp], eax
lea eax, [0x6c8558]
mov dword [esp + 4], eax
call fcn.00431bb0
nop
call fcn.0045b380
jmp fcn.00504c00