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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, dword [edx*4 + 0x20a514c]
mov dword [esp + 0x14], esi
cmp word [esi + 0x78], 1
je 0x50c09a
mov eax, dword [esi + 0x2a8]
test eax, eax
js 0x50c554
cmp eax, 0x1194
jge 0x50c554
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx*4 + 0x20a514c]
mov dword [esp + 0x3c], ebx
mov eax, dword [ebx + 0x284]
cmp eax, dword [esi + 0x284]
jne 0x50c554
mov al, byte [ebx + 0x149]
cmp al, 0x28
je 0x50c0d0
cmp al, 0x12
jb 0x50c0d8
cmp al, 0x17
jbe 0x50c0d0
cmp al, 0x35
jne 0x50c0d8
cmp ecx, edx
jne 0x50c554
movsx eax, word [esi + 0x146]
push eax
movsx eax, word [esi + 0x144]
push eax
movsx eax, word [ebx + 0x146]
push eax
movsx eax, word [ebx + 0x144]
push eax
mov eax, dword [ebp + 0x10]
movzx eax, word [eax + 8]
push eax
call fcn.00507fe0
test al, al
je 0x50c554
mov eax, dword [ebx + 0x118]
add eax, dword [ebx + 0xec]
cdq
idiv dword [0xbdbf14]
push 0x193
mov edi, eax
mov eax, dword [ebx + 0xf4]
add eax, dword [ebx + 0x120]
cdq
idiv dword [0xbdbf18]
add edi, dword [0xbdbf10]
push ebx
add edi, eax
call fcn.004b6100
add edi, eax
cmp edi, dword [0xbdbf40]
cmovg edi, dword [0xbdbf40]
cmp word [esi + 0x78], 1
jne 0x50c16e
movzx eax, word [esi + 0xcc]
mov ecx, dword [eax*4 + 0xbdbf1c]
jmp 0x50c173
mov ecx, 0x64
imul ecx, edi
mov eax, 0x51eb851f
push 0x196
push ebx
imul ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
call fcn.004b6100
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0xf4]
add eax, dword [ebx + 0x120]
cdq
idiv dword [0xbdbf3c]
push 0x194
push dword [esp + 0x40]
mov ebx, eax
add ebx, dword [0xbdbf38]
call fcn.004b6100
add ebx, eax
mov ecx, 0xbf0bd4
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], ebx
movzx eax, word [eax + 8]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00405650
mov eax, dword [esp + 0x48]
mov ecx, dword [0xbf0bd4]
cmp byte [eax + 0xd], 0
jne 0x50c204
mov esi, dword [ebp + 0x10]
movzx edx, word [esi + 8]
mov esi, dword [esp + 0x14]
cmp edx, dword [eax + 0x10]
jge 0x50c206
mov eax, ecx
cmp eax, ecx
je 0x50c533
mov ecx, dword [eax + 0x54]
mov eax, dword [esp + 0x34]
movzx edx, ax
mov dword [esp + 0x20], edx
movzx edx, di
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
test ecx, ecx
js 0x50c533
cmp ecx, 0x100
jge 0x50c533
imul eax, ecx, 0x4c
cmp dword [eax + 0x6460e4], ecx
lea edi, [eax + 0x6460e4]
jne 0x50c533
test edi, edi
je 0x50c533
mov eax, dword [edi + 0x38]
cmp eax, 0xffffffff
je 0x50c285
cmp dword [edi + 0x30], 2
jne 0x50c27f
push 0
call fcn.0052d9f5
mov ebx, dword [edi + 0x38]
add esp, 4
add ebx, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x18], ebx
jmp 0x50c285
mov ebx, eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x3c]
cmp eax, 0xffffffff
je 0x50c294
movzx eax, ax
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x40]
cmp eax, 0xffffffff
je 0x50c2a3
movzx eax, ax
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x44]
xor edx, edx
mov esi, dword [esi + 0x624]
cmp eax, 0xffffffff
movzx ecx, ax
cmove ecx, edx
movzx eax, cx
mov dword [esp + 0x28], eax
movzx eax, ax
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x48]
cmp eax, 0xffffffff
movzx ecx, ax
cmove ecx, edx
movzx eax, cx
xor ecx, ecx
mov dword [esp + 0x40], eax
movzx eax, ax
mov dword [esp + 0x38], eax
mov dl, byte [esi + 4]
cmp dl, 0xff
je 0x50c2f6
movzx eax, byte [esi + 5]
cmp eax, dword [edi + 4]
je 0x50c3a8
inc ecx
add esi, 0x1c
cmp ecx, 0x20
jl 0x50c2e1
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov ecx, dword [esp + 0x14]
nop dword [eax]
mov esi, dword [ecx + 0x624]
mov edx, eax
mov al, byte [edi + 0x34]
add esi, ebx
mov byte [esp + 0x11], al
mov al, byte [edi + 0x30]
mov byte [esp + 0x10], al
cmp byte [esi + 4], 0xff
mov al, byte [edi + 0x2c]
mov byte [esp + 0x12], al
mov al, byte [edi + 4]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
jne 0x50c394
mov cl, byte [esp + 0x10]
cmp cl, 2
jne 0x50c4c5
push 0
mov dword [esp + 0x2c], eax
call fcn.0052d9f5
add esp, 4
push edx
push eax
push 0
push dword [esp + 0x24]
call fcn.0052d9b0
add esp, 0x10
fstp qword [esp + 0x40]
movsd xmm0, qword [esp + 0x40]
call fcn.00546020
mov edx, eax
test edx, edx
jg 0x50c4c1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add ebx, 0x1c
cmp ebx, 0x380
jl 0x50c310
jmp 0x50c533
movzx eax, dl
cmp dword [esp + 0x24], eax
jne 0x50c3e9
mov eax, dword [esp + 0x1c]
cmp ax, word [esi + 0x14]
jb 0x50c533
mov eax, dword [esp + 0x20]
cmp ax, word [esi + 0x16]
jb 0x50c533
mov eax, dword [esp + 0x28]
cmp ax, word [esi + 0x18]
jb 0x50c533
mov eax, dword [esp + 0x40]
cmp ax, word [esi + 0x1a]
jb 0x50c533
push esi
push dword [esp + 0x18]
mov ecx, 0x6460e0
call fcn.00478000
movzx eax, byte [esi + 4]
mov ecx, 0x6460e0
push eax
movzx eax, byte [esi + 5]
push 0
push 2
push 0
push eax
push dword [esp + 0x28]
call fcn.00478bb0
xor eax, eax
mov dword [esi + 4], 0xff
mov dword [esi + 0x10], 0
xor edx, edx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov al, byte [edi + 0x34]
mov cl, byte [edi + 0x30]
mov byte [esp + 0x13], al
mov al, byte [edi + 0x2c]
mov byte [esp + 0x11], al
mov al, byte [edi + 4]
mov byte [esp + 0x12], cl
mov byte [esp + 0x10], al
cmp cl, 2
jne 0x50c495
push edx
mov dword [esp + 0x44], ebx
call fcn.0052d9f5
add esp, 4
push edx
push eax
push 0
push ebx
call fcn.0052d9b0
add esp, 0x10
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
call fcn.00546020
mov ebx, eax
test ebx, ebx
jle 0x50c533
mov al, byte [esp + 0x10]
mov edx, dword [esp + 0x40]
mov ah, byte [esp + 0x11]
mov cl, byte [esp + 0x24]
mov byte [esi + 6], ah
mov ah, byte [esp + 0x12]
mov byte [esi + 7], ah
mov ah, byte [esp + 0x13]
push ecx
mov byte [esi + 5], al
mov byte [esi + 8], ah
mov byte [esi + 4], cl
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
push ebx
movzx eax, al
jmp 0x50c4f3
mov cl, byte [esp + 0x10]
mov al, byte [esp + 0x24]
mov ch, byte [esp + 0x12]
mov bl, byte [esp + 0x13]
mov byte [esi + 7], cl
mov cl, byte [esp + 0x11]
push eax
mov byte [esi + 6], ch
mov byte [esi + 8], cl
mov ecx, dword [esp + 0x2c]
mov byte [esi + 4], al
mov byte [esi + 5], bl
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
push edx
movzx eax, bl
mov edi, dword [esp + 0x24]
mov ecx, 0x6460e0
mov ebx, dword [esp + 0x1c]
mov word [esi + 0x14], di
mov edi, dword [esp + 0x28]
push 0
mov word [esi + 0x16], di
mov edi, dword [esp + 0x40]
push 0
mov word [esi + 0x18], di
mov edi, dword [esp + 0x48]
push eax
push ebx
mov word [esi + 0x1a], di
call fcn.00478bb0
push esi
push ebx
mov ecx, 0x6460e0
call fcn.00477580
mov eax, dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
movzx eax, word [eax + 8]
push eax
push dword [esp + 0x48]
call fcn.00517480
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc