Function at 0x50d3a0
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 0x50d77f
sub esp, 0x6c
mov edx, dword [esp + 0x74]
mov ebx, dword [edx + 0x10]
test ebx, ebx
je 0x50d3c7
mov ebp, dword [edx + 0xc]
jmp 0x50d3cf
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], ebp
mov esi, dword [edx + 0x1c]
mov dword [esp + 0x2c], esi
mov eax, dword [edx + 0x18]
mov dword [esp + 0x40], eax
cmp ebx, 0x15
je 0x50d3f1
mov ecx, 1
jmp 0x50d429
mov dword [esp], ebp
lea eax, [0x580759]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x15
call fcn.004030e0
movzx eax, byte [esp + 0xc]
xor eax, 1
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x40]
test cl, cl
je 0x50d473
cmp ebx, 0x15
je 0x50d439
mov ecx, 1
jmp 0x50d475
mov dword [esp], ebp
lea eax, [0x58076e]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x15
call fcn.004030e0
movzx eax, byte [esp + 0xc]
xor eax, 1
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x40]
jmp 0x50d475
xor ecx, ecx
test cl, cl
je 0x50d516
cmp esi, 0xa
jle 0x50d4c8
mov dword [esp], 0
lea ecx, [0x57bbb4]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 7
lea eax, [0x57bf17]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 4
call fcn.0044f150
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x50d508
mov dword [esp], 0
lea ecx, [0x57bbb4]
mov dword [esp + 4], ecx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
lea eax, [0x57baf6]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 1
call fcn.0044f150
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x44]
mov esi, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], eax
cmp ebx, 0x12
jge 0x50d527
xor ecx, ecx
jmp 0x50d55c
mov dword [esp], ebp
lea eax, [0x57f4f7]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x12
call fcn.004030e0
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x40]
test cl, cl
je 0x50d5b2
cmp ebx, 0x12
jb 0x50d772
mov dword [esp], 0
lea eax, [0x57bbb6]
mov dword [esp + 4], eax
mov dword [esp + 8], 2
lea eax, [ebx - 0x12]
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, 0x12
add eax, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call fcn.0044f0b0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x74]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x50d5dc
test ecx, 0x200
jne 0x50d5dc
lea ecx, [0x5b7028]
mov edi, dword [esp + 0x80]
jmp 0x50d60a
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0048bbe0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x74]
mov edi, ecx
mov ecx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], edi
xor eax, eax
lea edi, [esp + 0x4c]
call fcn.00464ce8
mov ecx, dword [edx + 4]
inc ecx
mov dword [esp], ecx
call fcn.0040a230
mov ecx, dword [esp + 4]
lea edx, [0x557780]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ecx
call fcn.0040a330
mov ecx, dword [esp + 8]
lea edx, [0x557540]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call fcn.0040a330
mov ecx, dword [esp + 8]
lea edx, [0x557540]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x50d692
mov ecx, dword [ecx + 4]
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x68], eax
lea eax, [0x58603e]
mov dword [esp], eax
mov dword [esp + 4], 0x26
lea eax, [esp + 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], 4
call fcn.004b5ed0
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
inc edx
mov ebx, dword [eax + 0x10]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ecx, edx
jae 0x50d749
mov dword [esp + 0x48], ebp
mov dword [esp + 0x34], esi
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x557540]
mov dword [esp + 0x10], eax
call fcn.0044b6b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x70]
mov dword [ebx + 0x18], eax
mov eax, dword [0x6d0ed8]
test eax, eax
je 0x50d73a
call fcn.00464b00
mov dword [edi], ecx
mov eax, dword [ebx + 0x10]
mov dword [edi + 4], eax
mov dword [ebx + 0x10], ecx
mov eax, ebx
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x34]
mov ebx, ecx
mov dword [eax + 0x14], edx
lea eax, [ebx + edx*8 - 4]
mov dword [eax], esi
mov eax, dword [0x6d0ed8]
lea ecx, [ebx + edx*8 - 8]
test eax, eax
je 0x50d76c
call fcn.00464b00
mov dword [edi], ebp
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov dword [ecx], ebp
add esp, 0x6c
ret
mov eax, 0x12
mov ecx, ebx
call fcn.00464bd0
nop
call fcn.004636f0
jmp fcn.0050d3a0