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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5bcbe7
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebx
cmp ecx, eax
jne 0x5028f3
mov dword [esp + 0x58], 3
mov dword [esp + 0x5c], str.p:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partyprotobuf_files_srcgoogleprotobufdescriptor.pb.cc
mov dword [esp + 0x60], 0x182c
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov dword [esp + 0xc0], ebx
push 0x21
mov ebx, 1
push str.CHECK_failed:__from_____this_:
lea ecx, [esp + 0x6c]
mov dword [esp + 0x34], ebx
call fcn.004078a0
lea ecx, [esp + 0x58]
call fcn.004c1620
mov dword [esp + 0xc0], 0xffffffff
test bl, 1
je 0x502917
cmp dword [esp + 0x78], 0x10
jb 0x502917
mov eax, dword [esp + 0x64]
push eax
call fcn.00548a36
add esp, 4
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x40]
add ebx, 0x18
lea esi, [edi + 0x18]
call fcn.005074e0
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 8]
add edi, 4
mov dword [esp + 0x28], edi
mov edi, dword [eax]
mov dword [esp + 0x24], edi
cmp edi, eax
je 0x502e5b
cmp byte [edi + 0x21], 0
je 0x502ca6
mov edx, dword [edi + 0x24]
mov ebx, dword [edi + 0x10]
push 0x38
mov dword [esp + 0x30], edx
xor esi, esi
call fcn.00548a50
add esp, 4
test eax, eax
je 0x502e93
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 8], ecx
lea ecx, [eax + 0x10]
mov word [eax + 0x30], si
test ecx, ecx
je 0x5029a2
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x18], esi
mov dword [ecx], ebx
mov dword [ecx + 0x1c], esi
mov ebx, dword [esp + 0x28]
push eax
lea esi, [esp + 0x4c]
call fcn.004e3750
mov al, byte [esp + 0x4c]
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0x24], edx
test al, al
je 0x5029cd
mov cl, byte [edi + 0x20]
mov byte [ebx + 0x20], cl
mov byte [ebx + 0x21], 1
movzx edx, byte [edi + 0x20]
mov ecx, dword [edx*4 + 0x5d4008]
dec ecx
cmp ecx, 9
ja case.default.0x502cc7
jmp dword [ecx*4 + 0x502eb4]
test al, al
je 0x502a15
push 0x1c
call fcn.00548a50
add esp, 4
test eax, eax
je 0x502a10
lea ecx, [eax + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [eax + 8], 4
jmp 0x502a12
xor eax, eax
mov dword [ebx + 0x18], eax
mov edi, dword [edi + 0x18]
mov esi, dword [ebx + 0x18]
call fcn.004e3710
mov edi, dword [esp + 0x24]
jmp case.default.0x502cc7
test al, al
je 0x502a55
push 0x30
call fcn.00548a50
add esp, 4
test eax, eax
je 0x502a50
lea edx, [eax + 0x10]
mov dword [eax], edx
mov dword [eax + 4], 0
mov dword [eax + 8], 4
jmp 0x502a52
xor eax, eax
mov dword [ebx + 0x18], eax
mov edi, dword [edi + 0x18]
mov esi, dword [ebx + 0x18]
call fcn.004e36d0
mov edi, dword [esp + 0x24]
jmp case.default.0x502cc7
test al, al
je 0x502a95
push 0x1c
call fcn.00548a50
add esp, 4
test eax, eax
je 0x502a90
lea ecx, [eax + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [eax + 8], 4
jmp 0x502a92
xor eax, eax
mov dword [ebx + 0x18], eax
mov edi, dword [edi + 0x18]
mov esi, dword [ebx + 0x18]
call fcn.004e3710
mov edi, dword [esp + 0x24]
jmp case.default.0x502cc7
test al, al
je 0x502ad5
push 0x30
call fcn.00548a50
add esp, 4
test eax, eax
je 0x502ad0
lea edx, [eax + 0x10]
mov dword [eax], edx
mov dword [eax + 4], 0
mov dword [eax + 8], 4
jmp 0x502ad2
xor eax, eax
mov dword [ebx + 0x18], eax
mov edi, dword [edi + 0x18]
mov esi, dword [ebx + 0x18]
call fcn.004e36d0
mov edi, dword [esp + 0x24]
jmp case.default.0x502cc7
test al, al
je 0x502b15
push 0x1c
call fcn.00548a50
add esp, 4
test eax, eax
je 0x502b10
lea ecx, [eax + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [eax + 8], 4
jmp 0x502b12
xor eax, eax
mov dword [ebx + 0x18], eax
mov edi, dword [edi + 0x18]
mov esi, dword [ebx + 0x18]
call fcn.004e3710
mov edi, dword [esp + 0x24]
jmp case.default.0x502cc7
test al, al
je 0x502b55
push 0x30
call fcn.00548a50
add esp, 4
test eax, eax
je 0x502b50
lea edx, [eax + 0x10]
mov dword [eax], edx
mov dword [eax + 4], 0
mov dword [eax + 8], 4
jmp 0x502b52
xor eax, eax
mov dword [ebx + 0x18], eax
mov edi, dword [edi + 0x18]
mov esi, dword [ebx + 0x18]
call fcn.004e36d0
mov edi, dword [esp + 0x24]
jmp case.default.0x502cc7
test al, al
je 0x502b95
push 0x10
call fcn.00548a50
add esp, 4
test eax, eax
je 0x502b90
lea ecx, [eax + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [eax + 8], 4
jmp 0x502b92
xor eax, eax
mov dword [ebx + 0x18], eax
mov edx, dword [esp + 0x48]
mov ebx, dword [edi + 0x18]
mov esi, dword [edx + 0x18]
call fcn.00436120
jmp case.default.0x502cc7
xor esi, esi
test al, al
je 0x502be8
push 0x20
call fcn.00548a50
add esp, 4
cmp eax, esi
je 0x502be3
lea edx, [eax + 0x10]
mov dword [eax], edx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], 4
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x18]
mov esi, dword [ebx + 0x18]
push eax
call fcn.004372c0
jmp case.default.0x502cc7
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x18]
mov esi, dword [ebx + 0x18]
push eax
call fcn.004372c0
jmp case.default.0x502cc7
xor esi, esi
test al, al
je 0x502c26
push 0x20
call fcn.00548a50
add esp, 4
cmp eax, esi
je 0x502c21
lea ecx, [eax + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], 4
jmp 0x502c23
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], esi
cmp dword [eax + 4], esi
jle case.default.0x502cc7
jmp 0x502c44
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
mov eax, dword [edx + esi*4]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jge 0x502c67
mov edx, dword [eax]
mov edx, dword [edx + ecx*4]
inc ecx
mov dword [eax + 4], ecx
mov ecx, edx
test edx, edx
jne 0x502c87
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov esi, dword [ebx + 0x18]
push eax
mov dword [esp + 0x40], eax
call fcn.004dd3b0
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
mov eax, dword [ecx]
mov edx, dword [esp + 0x38]
mov eax, dword [eax + 0x18]
push edx
call eax
mov ecx, dword [esp + 0x2c]
inc esi
mov dword [esp + 0x34], esi
cmp esi, dword [ecx + 4]
jl 0x502c40
jmp case.default.0x502cc7
cmp byte [edi + 0x22], 0
jne case.default.0x502cc7
mov al, byte [edi + 0x20]
movzx edx, al
mov ecx, dword [edx*4 + 0x5d4008]
dec ecx
cmp ecx, 9
ja case.default.0x502cc7
jmp dword [ecx*4 + 0x502edc]
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [esp + 0x30]
push eax
call fcn.004de930
jmp case.default.0x502cc7
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x1c]
push ecx
mov ecx, dword [edi + 0x18]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [edi + 0x10]
push eax
call fcn.004df150
jmp case.default.0x502cc7
mov edx, dword [edi + 0x24]
mov ecx, dword [edi + 0x18]
push edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [edi + 0x10]
push eax
call fcn.004de930
jmp case.default.0x502cc7
mov edx, dword [edi + 0x24]
mov ecx, dword [edi + 0x1c]
push edx
mov edx, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [esp + 0x34]
push eax
call fcn.004df150
jmp case.default.0x502cc7
mov ecx, dword [edi + 0x24]
fld dword [edi + 0x18]
mov edx, dword [esp + 0x28]
push ecx
push ecx
mov ecx, dword [edi + 0x10]
fstp dword [esp]
push eax
call fcn.004df540
jmp case.default.0x502cc7
fld qword [edi + 0x18]
mov edx, dword [edi + 0x24]
mov ecx, dword [edi + 0x10]
sub esp, 8
fstp qword [esp]
push edx
mov edx, dword [esp + 0x34]
push eax
call fcn.004df920
jmp case.default.0x502cc7
mov ecx, dword [edi + 0x24]
movzx edx, byte [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [esp + 0x30]
push eax
call fcn.004dfd00
jmp case.default.0x502cc7
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [esp + 0x30]
push eax
call fcn.004de930
jmp case.default.0x502cc7
mov edx, dword [edi + 0x24]
mov ecx, dword [edi + 0x10]
mov esi, dword [edi + 0x18]
mov byte [esp + 0x44], al
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x2c]
push eax
call fcn.004e0300
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00409870
jmp case.default.0x502cc7
mov ecx, dword [edi + 0x24]
mov edx, dword [edi + 0x18]
push ecx
mov ecx, dword [edi + 0x10]
push edx
mov edx, dword [esp + 0x30]
push eax
call fcn.004e06e0
mov ecx, dword [edi + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push ecx
mov ecx, eax
call edx
cmp byte [edi + 0x31], 0
jne 0x502e4e
mov ecx, dword [edi + 8]
cmp byte [ecx + 0x31], 0
jne 0x502e20
mov eax, dword [ecx]
cmp byte [eax + 0x31], 0
jne 0x502e1a
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x31], 0
je 0x502e10
mov dword [esp + 0x24], ecx
jmp 0x502e4a
mov eax, dword [edi + 4]
cmp byte [eax + 0x31], 0
jne 0x502e46
jmp 0x502e34
mov edi, dword [esp + 0x24]
cmp edi, dword [eax + 8]
jne 0x502e46
mov dword [esp + 0x24], eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x31], 0
je 0x502e30
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
cmp edi, dword [eax + 8]
jne 0x502946
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
add ecx, 0x14
push ecx
add edx, 0x14
push edx
call fcn.004e9fa0
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00548a41
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], vtable.stdext::bad_alloc.0
lea ecx, [esp + 0x50]
mov dword [esp + 0xc0], 1
call fcn.00404df0
nop
jmp 0x29507ee2