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

Disassembly:
push 0xffffffffffffffff
push 0x5b4861
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb4]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 8]
mov esi, ecx
push eax
lea edi, [esp + 0xbc]
call fcn.00509600
add esp, 4
test al, al
jne 0x50855f
mov dword [esp + 0x58], 2
mov dword [esp + 0x5c], str.p:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partyprotobuf_files_srcgoogleprotobufdescriptor_database.cc
mov dword [esp + 0x60], 0x39
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
push 0x21
mov dword [esp + 0xb0], ebx
mov ebp, dword [ebp + 8]
push str.File_already_exists_in_database:
lea ecx, [esp + 0x6c]
call fcn.004078a0
push 0xffffffffffffffff
push ebx
push ebp
lea ecx, [esp + 0x70]
call fcn.004077b0
lea ecx, [esp + 0x58]
call fcn.004c1620
mov dword [esp + 0xac], 0xffffffff
cmp dword [esp + 0x78], 0x10
jb 0x508558
mov eax, dword [esp + 0x64]
push eax
call fcn.00548a36
add esp, 4
xor al, al
jmp 0x508954
mov ecx, dword [ebp + 0xbc]
shr ecx, 1
test cl, 1
je 0x5085a5
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
mov edi, 0xf
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
call fcn.00409870
lea eax, [esp + 0x80]
lea ebx, [edi - 0xe]
jmp 0x5085c3
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
lea eax, [esp + 0x58]
mov ebx, 2
mov edi, 0xf
mov dword [esp + 0xac], ebx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.00407740
mov dword [esp + 0xac], 4
test bl, 2
je 0x508625
and ebx, 0xfffffffd
cmp dword [esp + 0x6c], 0x10
mov dword [esp + 0x1c], ebx
jb 0x508614
mov edx, dword [esp + 0x58]
push edx
call fcn.00548a36
add esp, 4
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
mov byte [esp + 0xac], 5
test bl, 1
je 0x508666
cmp dword [esp + 0x94], 0x10
jb 0x50864c
mov eax, dword [esp + 0x80]
push eax
call fcn.00548a36
add esp, 4
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], 0
mov byte [esp + 0x80], 0
cmp dword [esp + 0x30], 0
je 0x50867a
push 0x2e
push 1
lea ecx, [esp + 0x28]
call fcn.004097c0
xor ebx, ebx
cmp dword [ebp + 0x34], ebx
jle 0x508739
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx + ebx*4]
mov eax, dword [eax + 8]
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.0046a250
mov byte [esp + 0xb8], 7
mov edx, dword [esp + 0xc4]
add esp, 4
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0xc4]
mov dword [ecx + 4], edx
mov edi, eax
mov ecx, esi
mov dword [esp + 0x24], esp
call fcn.00508f60
test al, al
mov edi, 0x10
sete byte [esp + 0x1b]
mov byte [esp + 0xac], 5
cmp dword [esp + 0x50], edi
jb 0x5086f2
mov eax, dword [esp + 0x3c]
push eax
call fcn.00548a36
add esp, 4
cmp byte [esp + 0x1b], 0
jne 0x50897e
mov ecx, dword [esp + 0xb8]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0xc4]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x24], esp
push eax
mov ecx, esi
call fcn.005092b0
test al, al
je 0x5089a4
inc ebx
cmp ebx, dword [ebp + 0x34]
jl 0x508685
xor ebx, ebx
cmp dword [ebp + 0x54], ebx
jle 0x5087be
mov eax, dword [ebp + 0x50]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax + 8]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0046a250
mov byte [esp + 0xb8], 0xa
mov edx, dword [esp + 0xc4]
add esp, 4
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0xc4]
mov dword [ecx + 4], edx
mov edi, eax
mov ecx, esi
mov dword [esp + 0x24], esp
call fcn.00508f60
test al, al
mov edi, 0x10
sete byte [esp + 0x1b]
mov byte [esp + 0xac], 5
cmp dword [esp + 0x50], edi
jb 0x5087ad
mov eax, dword [esp + 0x3c]
push eax
call fcn.00548a36
add esp, 4
cmp byte [esp + 0x1b], 0
jne 0x50897e
inc ebx
cmp ebx, dword [ebp + 0x54]
jl 0x508740
xor ebx, ebx
cmp dword [ebp + 0x94], ebx
jle 0x50888d
lea esp, [esp]
mov edx, dword [ebp + 0x90]
mov eax, dword [edx + ebx*4]
mov eax, dword [eax + 8]
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.0046a250
mov byte [esp + 0xb8], 0xc
mov edx, dword [esp + 0xc4]
add esp, 4
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0xc4]
mov dword [ecx + 4], edx
mov edi, eax
mov ecx, esi
mov dword [esp + 0x24], esp
call fcn.00508f60
test al, al
mov edi, 0x10
sete byte [esp + 0x1b]
mov byte [esp + 0xac], 5
cmp dword [esp + 0x50], edi
jb 0x508840
mov eax, dword [esp + 0x3c]
push eax
call fcn.00548a36
add esp, 4
cmp byte [esp + 0x1b], 0
jne 0x50897e
mov ecx, dword [esp + 0xb8]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0xc4]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x90]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x24], esp
push eax
mov ecx, esi
call fcn.00509380
test al, al
je 0x5089a4
inc ebx
cmp ebx, dword [ebp + 0x94]
jl 0x5087d0
xor ebx, ebx
cmp dword [ebp + 0x74], ebx
jle 0x508933
jmp 0x5088a0
mov eax, dword [ebp + 0x70]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax + 8]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0046a250
mov byte [esp + 0xb8], 0xf
mov edx, dword [esp + 0xc4]
add esp, 4
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0xc4]
mov dword [ecx + 4], edx
mov edi, eax
mov ecx, esi
mov dword [esp + 0x24], esp
call fcn.00508f60
test al, al
mov edi, 0x10
sete byte [esp + 0x1b]
mov byte [esp + 0xac], 5
cmp dword [esp + 0x50], edi
jb 0x50890d
mov eax, dword [esp + 0x3c]
push eax
call fcn.00548a36
add esp, 4
cmp byte [esp + 0x1b], 0
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
jne 0x50897e
inc ebx
cmp ebx, dword [ebp + 0x74]
jl 0x5088a0
mov dword [esp + 0xac], 0xffffffff
cmp dword [esp + 0x34], 0x10
jb 0x508952
mov edx, dword [esp + 0x20]
push edx
call fcn.00548a36
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00548a41
add esp, 0x9c
ret 0xc
mov dword [esp + 0xac], 0xffffffff
cmp dword [esp + 0x34], edi
jb 0x508558
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00548a36
add esp, 4
xor al, al
jmp 0x508954
mov dword [esp + 0xac], 0xffffffff
cmp dword [esp + 0x34], edi
jb 0x508558
mov edx, dword [esp + 0x20]
push edx
call fcn.00548a36
add esp, 4
xor al, al
jmp 0x508954