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

Disassembly:
sub esp, 0xb8
xor eax, eax
push ebx
mov dword [esp + 0x31], eax
push ebp
mov dword [esp + 0x39], eax
mov cl, 0x24
mov dword [esp + 0x3d], eax
push esi
mov word [esp + 0x45], ax
push edi
mov byte [esp + 0x4b], al
mov al, 0x25
mov byte [esp + 0x22], cl
mov byte [esp + 0x23], al
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2b], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], 0
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dl, 0x23
mov dword [esp + 0x51], ecx
mov byte [esp + 0x21], dl
mov dword [esp + 0x55], ecx
mov byte [esp + 0x29], dl
stosw word es:[edi], ax
mov dword [esp + 0x59], ecx
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x5d], ecx
xor esi, esi
stosb byte es:[edi], al
mov dword [esp + 0x61], ecx
mov byte [esp + 0x88], cl
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x89]
mov bl, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, esi
mov byte [esp + 0x3c], 0
mov byte [esp + 0x1c], 0x4b
mov byte [esp + 0x1d], 0x47
mov byte [esp + 0x1e], 0x53
mov byte [esp + 0x1f], 0x21
mov byte [esp + 0x20], bl
mov byte [esp + 0x24], 0x4b
mov byte [esp + 0x25], 0x47
mov byte [esp + 0x26], 0x53
mov byte [esp + 0x27], 0x21
mov byte [esp + 0x28], bl
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 0
mov byte [esp + 0x2e], 0
mov byte [esp + 0x2f], 0
mov byte [esp + 0x30], 0
mov byte [esp + 0x50], 0
stosb byte es:[edi], al
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 0xe
je 0x50a193
mov ebp, dword [esp + 0xd0]
cmp ebp, esi
je 0x50a193
mov ebx, dword [esp + 0xd4]
cmp ebx, esi
je 0x50a193
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
mov dword [esp + 0x34], ecx
jle 0x509f40
lea eax, [esp + 0xa8]
mov edi, edx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
sub eax, edx
mov dword [esp + 0x4c], eax
cmp esi, 0xe
jge 0x509f40
movsx ecx, byte [edi]
push ecx
call dword [sym.imp.MSVCRT.dll_toupper]
mov edx, dword [esp + 0x50]
mov cl, byte [edi]
add esp, 4
inc esi
mov byte [edx + edi], al
mov eax, dword [esp + 0x38]
inc edi
mov byte [eax], cl
add eax, 2
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
cmp esi, eax
jl 0x509f0e
push 0
lea ecx, [esp + 0x18]
call fcn.00561eb0
test eax, eax
jne 0x50a193
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x14]
push edx
call fcn.00561f40
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push 0x15
mov edi, 0x10
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], edi
call fcn.005620c0
lea edx, [esp + 0x43]
lea ecx, [esp + 0x14]
push edx
call fcn.00561f40
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push 0x15
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], edi
call fcn.005620c0
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
push edx
call fcn.00561f40
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x10]
mov dword [esp + 0x68], eax
push edx
lea eax, [esp + 0x6c]
mov dword [esp + 0x70], ecx
mov esi, 8
push edi
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
call fcn.005620c0
lea ecx, [esp + 0x23]
push ecx
lea ecx, [esp + 0x18]
call fcn.00561f40
mov edx, dword [ebp]
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x70], edx
push ecx
lea edx, [esp + 0x74]
push edi
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x80], eax
mov dword [esp + 0x1c], esi
call fcn.005620c0
lea eax, [esp + 0x2a]
lea ecx, [esp + 0x14]
push eax
call fcn.00561f40
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
lea eax, [esp + 0x10]
mov dword [esp + 0x78], ecx
push eax
lea ecx, [esp + 0x7c]
push edi
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x88], edx
mov dword [esp + 0x1c], esi
call fcn.005620c0
movsx edx, word [ebx + 0x2c]
mov eax, dword [ebx + 0x30]
lea esi, [esp + 0x68]
movsx ecx, word [ebx + 0xc]
add eax, edx
mov dword [ebx + 0x10], eax
lea edi, [eax + ebx]
mov edx, ecx
lea eax, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
lea eax, [esp + 0xac]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x38]
lea edx, [ecx + ecx]
lea ecx, [esp + 0x18]
push edx
push eax
call fcn.005621b0
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
call fcn.00561f40
mov edx, dword [ebp]
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x88], edx
push ecx
lea edx, [esp + 0x8c]
mov esi, 8
push 0x10
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x98], eax
mov dword [esp + 0x1c], esi
call fcn.005620c0
lea eax, [esp + 0x57]
lea ecx, [esp + 0x14]
push eax
call fcn.00561f40
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
lea eax, [esp + 0x10]
mov dword [esp + 0x90], ecx
push eax
lea ecx, [esp + 0x94]
push 0x10
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xa0], edx
mov dword [esp + 0x1c], esi
call fcn.005620c0
lea edx, [esp + 0x5e]
lea ecx, [esp + 0x14]
push edx
call fcn.00561f40
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x10]
mov dword [esp + 0x98], eax
push edx
lea eax, [esp + 0x9c]
mov dword [esp + 0xa0], ecx
push 0x10
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
call fcn.005620c0
movsx ecx, word [ebx + 0xc]
mov edx, dword [ebx + 0x10]
lea esi, [esp + 0x88]
lea eax, [ecx + edx]
movsx ecx, word [ebx + 0x14]
mov dword [ebx + 0x18], eax
lea edi, [eax + ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00561f10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret 0xc
lea ecx, [esp + 0x14]
call fcn.00561f10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb8
ret 0xc