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

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0x5c
lea eax, [ecx - 2]
cmp ax, 0xe
ja 0x50d614
mov eax, dword [esp + 0x70]
push ebx
mov ebx, dword [esp + 0x70]
push ebp
mov ebp, dword [eax]
add ebp, ebx
mov dword [esp + 0x2c], ebx
xor eax, eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0xc], eax
movzx eax, cx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
cdq
push esi
mov esi, eax
mov dword [esp + 0x28], edx
lea eax, [ebx + 1]
mov dword [esp + 0x2c], esi
push edi
mov dword [esp + 0x10], eax
mov edi, ebx
mov eax, dword [esp + 0x70]
push edx
push esi
push ecx
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ecx
call fcn.00501fc0
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
cmp edx, ebp
ja 0x50d6bd
mov ecx, dword [esp + 0x28]
mov esi, edi
imul ecx, eax
inc edi
mov eax, dword [esp + 0x18]
inc edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x10], edx
sub eax, ecx
cmp byte [esp + 0x90], 0
mov ecx, dword [esp + 0x78]
mov al, byte [eax + 0x61edbf]
mov byte [esi], al
je 0x50d4b0
cmp cx, 0xa
jne 0x50d4b0
mov esi, dword [esp + 0x14]
inc esi
mov dword [esp + 0x14], esi
cmp esi, 3
jne 0x50d4b0
cmp edx, ebp
ja 0x50d621
mov eax, edi
inc edx
mov dword [esp + 0x10], edx
inc edi
mov dl, byte [esp + 0x90]
mov dword [esp + 0x38], edi
mov byte [eax], dl
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x20]
je 0x50d4cf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
jmp 0x50d425
mov dl, byte [esp + 0x8c]
mov dh, byte [esp + 0x84]
cmp dl, 0x30
jne 0x50d53f
cmp dword [esp + 0x24], 0
jg 0x50d4fc
jl 0x50d4f2
cmp dword [esp + 0x18], 0
jae 0x50d4fc
mov esi, dword [esp + 0x88]
dec esi
jmp 0x50d503
mov esi, dword [esp + 0x88]
test dh, dh
je 0x50d519
cmp cx, 8
jne 0x50d510
dec esi
jmp 0x50d519
cmp cx, 0x10
jne 0x50d519
sub esi, 2
mov ecx, edi
sub ecx, ebx
cmp ecx, esi
jge 0x50d546
lea eax, [ebx + 1]
add eax, ecx
cmp eax, ebp
ja 0x50d63b
mov eax, edi
inc ecx
inc edi
mov dword [esp + 0x38], edi
mov byte [eax], 0x30
cmp ecx, esi
jl 0x50d521
jmp 0x50d546
mov esi, dword [esp + 0x88]
test dh, dh
je 0x50d585
mov ecx, dword [esp + 0x78]
cmp cx, 8
je 0x50d568
cmp cx, 0x10
jne 0x50d585
push 0
lea ecx, [esp + 0x38]
call fcn.004165b0
mov byte [eax], 0x78
push 0
lea ecx, [esp + 0x38]
call fcn.004165b0
mov dl, byte [esp + 0x8c]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov byte [eax], 0x30
cmp dword [esp + 0x24], 0
jg 0x50d5a7
jl 0x50d595
cmp dword [esp + 0x18], 0
jae 0x50d5a7
lea ecx, [edi + 1]
cmp ecx, ebp
ja 0x50d655
mov eax, edi
mov edi, ecx
mov byte [eax], 0x2d
cmp dl, 0x30
je 0x50d5cb
mov ecx, edi
sub ecx, ebx
cmp ecx, esi
jge 0x50d5cb
lea eax, [ebx + 1]
add eax, ecx
cmp eax, ebp
ja 0x50d689
mov eax, edi
inc ecx
inc edi
mov byte [eax], dl
cmp ecx, esi
jl 0x50d5b4
mov ecx, dword [esp + 0x80]
mov eax, edi
sub eax, ebx
mov dword [ecx], eax
lea eax, [edi - 1]
cmp eax, ebp
jbe 0x50d5e4
jmp 0x50d66f
mov eax, edi
dec edi
mov byte [eax], 0
cmp ebx, edi
jae 0x50d60a
lea edx, [edi - 1]
mov ah, byte [edi]
cmp edx, ebp
ja 0x50d6a3
mov al, byte [ebx]
mov ecx, edi
dec edi
dec edx
mov byte [ecx], al
mov byte [ebx], ah
inc ebx
cmp ebx, edi
jb 0x50d5f1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x6c]
mov byte [eax], 0
xor al, al
add esp, 0x5c
ret
push 0
lea ecx, [esp + 0x44]
call fcn.00503e80
push 0x644a44
lea eax, [esp + 0x44]
push eax
call fcn.005879e4
push 0
lea ecx, [esp + 0x44]
call fcn.00503e80
push 0x644a44
lea eax, [esp + 0x44]
push eax
call fcn.005879e4
push 0
lea ecx, [esp + 0x44]
call fcn.00503e80
push 0x644a44
lea eax, [esp + 0x44]
push eax
call fcn.005879e4
push 0
lea ecx, [esp + 0x44]
call fcn.00503e80
push 0x644a44
lea eax, [esp + 0x44]
push eax
call fcn.005879e4
push 0
lea ecx, [esp + 0x44]
call fcn.00503e80
push 0x644a44
lea eax, [esp + 0x44]
push eax
call fcn.005879e4
push 0
lea ecx, [esp + 0x44]
call fcn.00503e80
push 0x644a44
lea eax, [esp + 0x44]
push eax
call fcn.005879e4
push 0
lea ecx, [esp + 0x44]
call fcn.00503e80
push 0x644a44
lea eax, [esp + 0x44]
push eax
call fcn.005879e4
int3