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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x1010b334]
xor eax, esp
mov dword [esp + 0x90], eax
xor eax, eax
cmp dword [0x10111f0c], 1
push ebx
mov ebx, 0x8b
push esi
mov esi, 0x50008
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov al, 0x7c
mov dl, 0x86
mov cl, 0x83
push edi
mov byte [esp + 0x90], bl
mov byte [esp + 0x91], 0x75
mov byte [esp + 0x92], 8
mov byte [esp + 0x93], bl
mov byte [esp + 0x94], dl
mov byte [esp + 0x95], al
mov byte [esp + 0x96], 1
mov byte [esp + 0x97], 0
mov byte [esp + 0x98], 0
mov byte [esp + 0x70], bl
mov byte [esp + 0x71], cl
mov byte [esp + 0x72], al
mov byte [esp + 0x73], 1
mov byte [esp + 0x74], 0
mov byte [esp + 0x75], 0
mov byte [esp + 0x78], bl
mov byte [esp + 0x79], 0x87
mov byte [esp + 0x7a], al
mov byte [esp + 0x7b], 1
mov byte [esp + 0x7c], 0
mov byte [esp + 0x7d], 0
mov byte [esp + 0x88], bl
mov byte [esp + 0x89], cl
mov byte [esp + 0x8a], al
mov byte [esp + 0x8b], 1
mov byte [esp + 0x8c], 0
mov byte [esp + 0x8d], 0
mov byte [esp + 0x80], bl
mov byte [esp + 0x81], dl
mov byte [esp + 0x82], al
mov byte [esp + 0x83], 1
mov byte [esp + 0x84], 0
mov byte [esp + 0x85], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0x17714741
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x177147c4
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x1b580000
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x1a910000
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0x1771490e
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], 0x1b5c0000
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 0x177147a8
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], 0x1b2c0000
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 0x17714732
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 0x17715966
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], 0x1db04001
jne 0x5044c5
mov eax, dword [0x10111f10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call 0x5361f8
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
sub eax, edi
mov dword [esp + 0xc], eax
je 0x504540
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00504260
movzx eax, al
add esp, 8
test eax, eax
je 0x504542
mov edx, dword [esp + 0x10]
movzx eax, dx
cmp eax, 7
ja 0x50456f
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffffb
add edi, 5
cmp ecx, 0x15
jbe 0x504540
xor edx, edx
lea esp, [esp]
movzx eax, byte [edx + edi]
sub eax, ebx
jne 0x504524
movzx eax, byte [edx + edi + 1]
sub eax, 0xf1
je 0x504532
test eax, eax
mov ecx, 1
jg 0x504534
or ecx, 0xffffffff
jmp 0x504534
xor ecx, ecx
test ecx, ecx
je 0x504568
add edx, 1
cmp edx, 0x15
jl 0x504510
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov dword [0x10111f0c], 1
mov dword [0x10111f10], eax
call 0x5361f8
mov esp, ebp
pop ebp
ret 8
mov eax, 1
jmp 0x504542
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp dword [esp + eax*8 + 0x18], edx
jne 0x504581
cmp dword [esp + eax*8 + 0x1c], ecx
je 0x50458b
add eax, 1
cmp eax, 0xb
jb 0x504575
jmp 0x504540
cmp edx, esi
jne 0x504540
cmp ecx, 0x17714741
jne 0x5045e9
cmp dword [esp + 0xc], 0x2e
jbe 0x504540
cmp word [edi + 0x1a], 0xf88b
jne 0x504540
movzx eax, byte [edi + 0x2b]
sub eax, ebx
lea ecx, [edi + 0x2b]
jne 0x5045c9
movzx eax, byte [ecx + 1]
add ecx, 1
sub eax, 0x75
jne 0x5045c9
movzx eax, byte [ecx + 1]
add ecx, 1
sub eax, 8
je 0x5045d7
test eax, eax
mov ecx, 1
jg 0x5045d9
or ecx, 0xffffffff
jmp 0x5045d9
xor ecx, ecx
test ecx, ecx
jne 0x504540
lea eax, [ecx + 2]
jmp 0x504542
cmp ecx, 0x177147c4
jne 0x504648
cmp dword [esp + 0xc], 0x87
jbe 0x504540
movzx eax, byte [edi + 0x84]
sub eax, ebx
lea ecx, [edi + 0x84]
jne 0x504628
movzx eax, byte [ecx + 1]
add ecx, 1
sub eax, 0x4d
jne 0x504628
movzx eax, byte [ecx + 1]
add ecx, 1
sub eax, 0xc
je 0x504636
test eax, eax
mov ecx, 1
jg 0x504638
or ecx, 0xffffffff
jmp 0x504638
xor ecx, ecx
test ecx, ecx
jne 0x504540
lea eax, [ecx + 3]
jmp 0x504542
cmp ecx, 0x1b580000
jne 0x504671
cmp dword [esp + 0xc], 0x12
jbe 0x504540
cmp word [edi + 0x10], 0xf88b
jne 0x504540
mov eax, 4
jmp 0x504542
cmp ecx, 0x1a910000
jne 0x504720
cmp dword [esp + 0xc], 0x33
jbe 0x504540
mov eax, 9
lea ecx, [esp + 0x90]
lea edx, [edi + 0x2a]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x5046af
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x504697
test eax, eax
je 0x50470c
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x5046fe
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x50470c
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x5046fe
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x50470c
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x5046fe
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x50470c
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x50470c
test esi, esi
mov eax, 1
jg 0x50470e
or eax, 0xffffffff
jmp 0x50470e
xor eax, eax
test eax, eax
jne 0x504540
mov eax, 5
jmp 0x504542
cmp ecx, 0x1771490e
jne 0x50477f
cmp dword [esp + 0xc], 0x87
jbe 0x504540
movzx eax, byte [edi + 0x84]
sub eax, ebx
lea ecx, [edi + 0x84]
jne 0x50475f
movzx eax, byte [ecx + 1]
add ecx, 1
sub eax, 0x4d
jne 0x50475f
movzx eax, byte [ecx + 1]
add ecx, 1
sub eax, 0xc
je 0x50476d
test eax, eax
mov ecx, 1
jg 0x50476f
or ecx, 0xffffffff
jmp 0x50476f
xor ecx, ecx
test ecx, ecx
jne 0x504540
lea eax, [ecx + 6]
jmp 0x504542
cmp ecx, 0x1b5c0000
jne 0x50482b
cmp dword [esp + 0xc], 0x34
jbe 0x504540
mov eax, 6
lea ecx, [esp + 0x70]
lea edx, [edi + 0x2e]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x5047ba
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x5047a2
test eax, eax
je 0x504817
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504809
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504817
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504809
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504817
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504809
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504817
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x504817
test esi, esi
mov eax, 1
jg 0x504819
or eax, 0xffffffff
jmp 0x504819
xor eax, eax
test eax, eax
jne 0x504540
mov eax, 7
jmp 0x504542
cmp ecx, 0x177147a8
jne 0x5048d9
cmp dword [esp + 0xc], 0x33
jbe 0x504540
mov eax, 6
lea ecx, [esp + 0x78]
lea edx, [edi + 0x2d]
mov edi, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x504868
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x504850
test eax, eax
je 0x5048c5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x5048b7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x5048c5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x5048b7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x5048c5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x5048b7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x5048c5
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x5048c5
test esi, esi
mov eax, 1
jg 0x5048c7
or eax, 0xffffffff
jmp 0x5048c7
xor eax, eax
test eax, eax
jne 0x504540
mov eax, 8
jmp 0x504542
cmp ecx, 0x1b2c0000
jne 0x504989
cmp dword [esp + 0xc], 0x34
jbe 0x504540
mov eax, 6
lea ecx, [esp + 0x88]
lea edx, [edi + 0x2e]
nop
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x504918
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x504900
test eax, eax
je 0x504975
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504967
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504975
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504967
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504975
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504967
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504975
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x504975
test esi, esi
mov eax, 1
jg 0x504977
or eax, 0xffffffff
jmp 0x504977
xor eax, eax
test eax, eax
jne 0x504540
mov eax, 9
jmp 0x504542
cmp ecx, 0x17714732
jne 0x504a39
cmp dword [esp + 0xc], 0x34
jbe 0x504540
mov eax, 6
lea ecx, [esp + 0x80]
lea edx, [edi + 0x2e]
nop
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x5049c8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x5049b0
test eax, eax
je 0x504a25
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504a17
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504a25
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504a17
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504a25
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504a17
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504a25
movzx esi, byte [edx]
movzx eax, byte [ecx]
sub esi, eax
je 0x504a25
test esi, esi
mov eax, 1
jg 0x504a27
or eax, 0xffffffff
jmp 0x504a27
xor eax, eax
test eax, eax
jne 0x504540
mov eax, 0xa
jmp 0x504542
cmp ecx, 0x17715966
jne 0x504ae9
cmp dword [esp + 0xc], 0x33
jbe 0x504540
mov eax, 6
lea ecx, [esp + 0x78]
lea edx, [edi + 0x2d]
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x504a78
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x504a60
test eax, eax
je 0x504ad5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504ac7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504ad5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504ac7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504ad5
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504ac7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504ad5
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x504ad5
test esi, esi
mov eax, 1
jg 0x504ad7
or eax, 0xffffffff
jmp 0x504ad7
xor eax, eax
test eax, eax
jne 0x504540
mov eax, 0xb
jmp 0x504542
cmp ecx, 0x1db04001
jne 0x504540
cmp dword [esp + 0xc], 0x34
jbe 0x504540
mov eax, 6
lea ecx, [esp + 0x70]
lea edx, [edi + 0x2e]
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x504b28
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x504b10
test eax, eax
je 0x504b85
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504b77
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504b85
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504b77
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504b85
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x504b77
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x504b85
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x504b85
test esi, esi
mov eax, 1
jg 0x504b87
or eax, 0xffffffff
jmp 0x504b87
xor eax, eax
test eax, eax
jne 0x504540
mov eax, 0xc
jmp 0x504542