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

Disassembly:
mov ecx, dword [0x6d0e30]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5061c4
sub esp, 0x40
mov eax, dword [esp + 0x44]
movzx ecx, byte [eax + 0x49]
cmp cl, 0xff
je 0x505fe5
mov byte [esp + 0x23], cl
test cl, 4
je 0x505e65
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x505e65
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x40
ret
lea eax, [0x692690]
mov dword [esp], eax
call fcn.0046bf50
lea eax, [0x566f00]
cmp dword [esp + 4], eax
jne 0x505e85
mov eax, dword [esp + 8]
jmp 0x505e97
lea eax, [0x56c2e0]
mov dword [esp], eax
call fcn.0040caa0
mov eax, dword [esp + 4]
test byte [eax], al
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x505ed5
nop
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x38], edx
mov ebx, dword [esp + 0x50]
mov dword [eax + 0x3c], ebx
mov ebx, dword [0x6d0ed8]
test ebx, ebx
je 0x505ec7
call fcn.00464b00
mov dword [edi], ecx
mov ebx, dword [eax + 0x34]
mov dword [edi + 4], ebx
mov dword [eax + 0x34], ecx
lea ecx, [eax + 0x34]
lea ebx, [0x5b699c]
jmp 0x505f10
nop
mov ecx, dword [esp + 0x58]
mov dword [eax + 0x44], ecx
mov edx, dword [0x6d0ed8]
test edx, edx
jne 0x505eed
mov edx, dword [esp + 0x54]
jmp 0x505efe
call fcn.00464b00
mov edx, dword [esp + 0x54]
mov dword [edi], edx
mov ebx, dword [eax + 0x40]
mov dword [edi + 4], ebx
mov dword [eax + 0x40], edx
lea edx, [eax + 0x40]
lea ebx, [0x5b6978]
mov ecx, edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], ecx
mov ebp, dword [esp + 0x44]
mov esi, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov esi, dword [esp + 0x60]
mov dword [esp + 0xc], esi
call fcn.00505200
movzx eax, byte [esp + 0x23]
test al, 4
je 0x505fc6
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x505f5f
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x5c]
mov dword [ecx], edx
jmp 0x505f63
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x44]
mov ebx, dword [ecx + 8]
mov ebx, dword [ebx + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
call fcn.00505430
movzx eax, byte [esp + 0x18]
test al, al
jne 0x5060c9
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00505130
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x40
ret
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x5c]
mov edi, 0xffffffff
jmp 0x506038
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x40
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x34]
mov dword [esp], edx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], ebx
call ecx
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
lea esi, [eax + edi]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
cmp esi, ebp
jg 0x5061a0
test edi, edi
je 0x5061a0
mov edi, dword [ecx + 0x28]
test edi, edi
je 0x50608a
mov dword [esp + 0x30], esi
mov eax, dword [ebx + 0x1c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call eax
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x506178
mov ecx, dword [esp + 0x30]
lea esi, [eax + ecx]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov edi, dword [eax + 8]
test edi, edi
je 0x506096
mov edi, dword [eax + 4]
mov dword [edi], esi
mov dword [esp + 0x2c], esi
mov ebp, dword [ecx + 8]
mov ebp, dword [ebp + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.00505430
movzx eax, byte [esp + 0x18]
test al, al
je 0x506001
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x68]
lea ebx, [ecx + edx]
mov ebp, dword [eax + 0x10]
mov esi, dword [esp + 0x6c]
cmp esi, ebx
jb 0x5060e8
mov edi, dword [esp + 0x64]
jmp 0x50612e
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
lea eax, [0x557780]
mov dword [esp + 0x10], eax
call fcn.0044b6b0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x3c]
mov edi, eax
mov esi, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], edi
lea eax, [edi + edx*4]
mov dword [esp], eax
mov dword [esp + 4], ebp
shl ecx, 2
mov dword [esp + 8], ecx
call fcn.004653e0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00505130
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x78], eax
add esp, 0x40
ret
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00505130
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x40
ret
mov dword [esp], eax
call fcn.00505130
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x40
ret
call fcn.004636f0
jmp fcn.00505e10